From 5d3f778b2aff510f2470ba70ea8a03fd0f3cce0a Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 11 Jan 2025 16:56:25 -0800 Subject: [PATCH] fix: openai proxy endpoints --- backend/open_webui/routers/openai.py | 1 + 1 file changed, 1 insertion(+) 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"]