mirror of
https://github.com/open-webui/open-webui
synced 2025-03-24 06:37:14 +00:00
refac: tool specs
This commit is contained in:
parent
2d795cffe0
commit
03bb4bcda6
@ -67,6 +67,7 @@ def get_tools_specs(tools) -> List[dict]:
|
|||||||
function
|
function
|
||||||
).parameters.items()
|
).parameters.items()
|
||||||
if param.default is param.empty
|
if param.default is param.empty
|
||||||
|
and not (name.startswith("__") and name.endswith("__"))
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user