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
a2ea6b1b
Commit
a2ea6b1b
authored
Jun 20, 2024
by
Timothy J. Baek
Browse files
enh: tool async support
parent
4370f233
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
backend/main.py
backend/main.py
+4
-1
No files found.
backend/main.py
View file @
a2ea6b1b
...
...
@@ -309,7 +309,10 @@ async def get_function_call_response(
"__id__"
:
tool_id
,
}
function_result
=
function
(
**
params
)
if
inspect
.
iscoroutinefunction
(
function
):
function_result
=
await
function
(
**
params
)
else
:
function_result
=
function
(
**
params
)
if
hasattr
(
toolkit_module
,
"citation"
)
and
toolkit_module
.
citation
:
citation
=
{
...
...
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