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
dcac1a3c
Commit
dcac1a3c
authored
Jun 18, 2024
by
Timothy J. Baek
Browse files
enh: tool __id__ param support for cache dir
parent
6f9a31eb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
backend/main.py
backend/main.py
+7
-0
No files found.
backend/main.py
View file @
dcac1a3c
...
...
@@ -280,6 +280,13 @@ async def get_function_call_response(
"__files__"
:
files
,
}
if
"__id__"
in
sig
.
parameters
:
# Call the function with the '__id__' parameter included
params
=
{
**
params
,
"__id__"
:
tool_id
,
}
function_result
=
function
(
**
params
)
except
Exception
as
e
:
print
(
e
)
...
...
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