mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 13:40:55 +00:00
fix: do not include reserved params in specs
This commit is contained in:
parent
0a08a4d2fb
commit
37285b8749
@ -59,7 +59,10 @@ def get_tools_specs(tools) -> List[dict]:
|
|||||||
for param_name, param_annotation in get_type_hints(
|
for param_name, param_annotation in get_type_hints(
|
||||||
function
|
function
|
||||||
).items()
|
).items()
|
||||||
if param_name != "return" and param_name != "__user__"
|
if param_name != "return"
|
||||||
|
and not (
|
||||||
|
param_name.startswith("__") and param_name.endswith("__")
|
||||||
|
)
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
name
|
name
|
||||||
|
Loading…
Reference in New Issue
Block a user