mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
fix: tools valves
This commit is contained in:
parent
db9e5e008f
commit
26e735618e
1 changed files with 3 additions and 3 deletions
|
|
@ -164,9 +164,9 @@ async def get_toolkit_valves_spec_by_id(
|
||||||
toolkit_module = load_toolkit_module_by_id(id)
|
toolkit_module = load_toolkit_module_by_id(id)
|
||||||
request.app.state.TOOLS[id] = toolkit_module
|
request.app.state.TOOLS[id] = toolkit_module
|
||||||
|
|
||||||
if hasattr(toolkit_module, "UserValves"):
|
if hasattr(toolkit_module, "Valves"):
|
||||||
UserValves = toolkit_module.UserValves
|
Valves = toolkit_module.Valves
|
||||||
return UserValves.schema()
|
return Valves.schema()
|
||||||
return None
|
return None
|
||||||
else:
|
else:
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue