From ff474936f81c921922cbb8718d3215c5cba36d23 Mon Sep 17 00:00:00 2001 From: Michael Poluektov Date: Tue, 9 Jul 2024 12:20:28 +0100 Subject: [PATCH] refac: remove model param --- backend/main.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/main.py b/backend/main.py index 32a557e9e..d785f302e 100644 --- a/backend/main.py +++ b/backend/main.py @@ -289,7 +289,6 @@ async def get_function_call_response( template, task_model_id, user, - model, __event_emitter__=None, __event_call__=None, ): @@ -525,7 +524,7 @@ async def chat_completion_functions_handler( async def chat_completion_tools_handler( - body, model, user, __event_emitter__, __event_call__ + body, user, __event_emitter__, __event_call__ ): skip_files = None @@ -547,7 +546,6 @@ async def chat_completion_tools_handler( template=app.state.config.TOOLS_FUNCTION_CALLING_PROMPT_TEMPLATE, task_model_id=task_model_id, user=user, - model=model, __event_emitter__=__event_emitter__, __event_call__=__event_call__, ) @@ -674,7 +672,7 @@ class ChatCompletionMiddleware(BaseHTTPMiddleware): try: body, flags = await chat_completion_tools_handler( - body, model, user, __event_emitter__, __event_call__ + body, user, __event_emitter__, __event_call__ ) contexts.extend(flags.get("contexts", []))