From a1a1747cf9b7a61fd8faeb98a13e70d7742e6a68 Mon Sep 17 00:00:00 2001 From: Samuel Date: Mon, 18 Nov 2024 18:49:53 +0000 Subject: [PATCH] fix: add parameter --- backend/open_webui/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/open_webui/main.py b/backend/open_webui/main.py index f58b8763c..2ae135a73 100644 --- a/backend/open_webui/main.py +++ b/backend/open_webui/main.py @@ -1393,7 +1393,8 @@ async def get_base_models(user=Depends(get_admin_user)): @app.post("/api/chat/completions") async def generate_chat_completions( - form_data: dict, user=Depends(get_verified_user), bypass_filter: bool = False + form_data: dict, user=Depends(get_verified_user), + bypass_filter: bool = False, as_openai: bool = False ): model_list = await get_all_models() models = {model["id"]: model for model in model_list}