Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
26e73561
Commit
26e73561
authored
Jun 23, 2024
by
Timothy J. Baek
Browse files
fix: tools valves
parent
db9e5e00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
backend/apps/webui/routers/tools.py
backend/apps/webui/routers/tools.py
+3
-3
No files found.
backend/apps/webui/routers/tools.py
View file @
26e73561
...
@@ -164,9 +164,9 @@ async def get_toolkit_valves_spec_by_id(
...
@@ -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
,
"
User
Valves"
):
if
hasattr
(
toolkit_module
,
"Valves"
):
User
Valves
=
toolkit_module
.
User
Valves
Valves
=
toolkit_module
.
Valves
return
User
Valves
.
schema
()
return
Valves
.
schema
()
return
None
return
None
else
:
else
:
raise
HTTPException
(
raise
HTTPException
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment