diff --git a/backend/open_webui/routers/openai.py b/backend/open_webui/routers/openai.py index 4ab381ea4..03f096a61 100644 --- a/backend/open_webui/routers/openai.py +++ b/backend/open_webui/routers/openai.py @@ -573,6 +573,7 @@ async def generate_chat_completion( detail="Model not found", ) + await get_all_models(request) model = request.app.state.OPENAI_MODELS.get(model_id) if model: idx = model["urlIdx"]