Ver Fonte

fix: __tools__ param issue

Timothy Jaeryang Baek há 1 mês atrás
pai
commit
0e46f8091f
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      backend/open_webui/functions.py

+ 1 - 1
backend/open_webui/functions.py

@@ -232,7 +232,7 @@ async def generate_function_chat_completion(
         "__metadata__": metadata,
         "__request__": request,
     }
-    extra_params["__tools__"] = get_tools(
+    extra_params["__tools__"] = await get_tools(
         request,
         tool_ids,
         user,