From 9205b90af6cb6d4c5f42ca59525c39585fb5973c Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sat, 22 Jun 2024 12:26:03 -0700 Subject: [PATCH] fix --- backend/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/main.py b/backend/main.py index b223931c9..993f775d7 100644 --- a/backend/main.py +++ b/backend/main.py @@ -281,7 +281,7 @@ async def get_function_call_response( **( { "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 ) ) @@ -415,7 +415,7 @@ class ChatCompletionMiddleware(BaseHTTPMiddleware): **( { "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 ) ) @@ -899,7 +899,7 @@ async def generate_chat_completions(form_data: dict, user=Depends(get_verified_u **( { "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 ) ) @@ -1109,7 +1109,7 @@ async def chat_completed(form_data: dict, user=Depends(get_verified_user)): **( { "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 ) )