Преглед изворни кода

fix: openai proxy endpoints

Timothy Jaeryang Baek пре 9 месеци
родитељ
комит
5d3f778b2a
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      backend/open_webui/routers/openai.py

+ 1 - 0
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"]