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}