fix: openai proxy endpoints

This commit is contained in:
Timothy Jaeryang Baek 2025-01-11 16:56:25 -08:00
parent ccbd98dfab
commit 5d3f778b2a

View File

@ -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"]