From 403262d7640a1418bd1d0b601f22cecd7988e477 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 11 Dec 2024 20:40:20 -0800 Subject: [PATCH] fix --- backend/open_webui/main.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/backend/open_webui/main.py b/backend/open_webui/main.py index a49c225b3..eba8e51e8 100644 --- a/backend/open_webui/main.py +++ b/backend/open_webui/main.py @@ -2037,8 +2037,7 @@ async def generate_chat_completions( # Using /ollama/api/chat endpoint form_data = convert_payload_openai_to_ollama(form_data) response = await generate_ollama_chat_completion( - request=request, - form_data=form_data, user=user, bypass_filter=bypass_filter + request=request, form_data=form_data, user=user, bypass_filter=bypass_filter ) if form_data.stream: response.headers["content-type"] = "text/event-stream" @@ -2050,9 +2049,7 @@ async def generate_chat_completions( return convert_response_ollama_to_openai(response) else: return await generate_openai_chat_completion( - request=request, - - form_data, user=user, bypass_filter=bypass_filter + request=request, form_data=form_data, user=user, bypass_filter=bypass_filter )