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
9205b90a
Commit
9205b90a
authored
Jun 22, 2024
by
Timothy J. Baek
Browse files
fix
parent
6ce91de7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
backend/main.py
backend/main.py
+4
-4
No files found.
backend/main.py
View file @
9205b90a
...
@@ -281,7 +281,7 @@ async def get_function_call_response(
...
@@ -281,7 +281,7 @@ async def get_function_call_response(
**
(
**
(
{
{
"valves"
:
toolkit_module
.
UserValves
(
"valves"
:
toolkit_module
.
UserValves
(
Tools
.
get_user_valves_by_id_and_user_id
(
**
Tools
.
get_user_valves_by_id_and_user_id
(
tool_id
,
user
.
id
tool_id
,
user
.
id
)
)
)
)
...
@@ -415,7 +415,7 @@ class ChatCompletionMiddleware(BaseHTTPMiddleware):
...
@@ -415,7 +415,7 @@ class ChatCompletionMiddleware(BaseHTTPMiddleware):
**
(
**
(
{
{
"valves"
:
function_module
.
UserValves
(
"valves"
:
function_module
.
UserValves
(
Functions
.
get_user_valves_by_id_and_user_id
(
**
Functions
.
get_user_valves_by_id_and_user_id
(
filter_id
,
user
.
id
filter_id
,
user
.
id
)
)
)
)
...
@@ -899,7 +899,7 @@ async def generate_chat_completions(form_data: dict, user=Depends(get_verified_u
...
@@ -899,7 +899,7 @@ async def generate_chat_completions(form_data: dict, user=Depends(get_verified_u
**
(
**
(
{
{
"valves"
:
function_module
.
UserValves
(
"valves"
:
function_module
.
UserValves
(
Functions
.
get_user_valves_by_id_and_user_id
(
**
Functions
.
get_user_valves_by_id_and_user_id
(
pipe_id
,
user
.
id
pipe_id
,
user
.
id
)
)
)
)
...
@@ -1109,7 +1109,7 @@ async def chat_completed(form_data: dict, user=Depends(get_verified_user)):
...
@@ -1109,7 +1109,7 @@ async def chat_completed(form_data: dict, user=Depends(get_verified_user)):
**
(
**
(
{
{
"valves"
:
function_module
.
UserValves
(
"valves"
:
function_module
.
UserValves
(
Functions
.
get_user_valves_by_id_and_user_id
(
**
Functions
.
get_user_valves_by_id_and_user_id
(
filter_id
,
user
.
id
filter_id
,
user
.
id
)
)
)
)
...
...
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