This commit is contained in:
Timothy Jaeryang Baek
2024-12-11 20:39:55 -08:00
parent d9ffcea764
commit 866c3dff11
3 changed files with 36 additions and 22 deletions

View File

@@ -404,7 +404,7 @@ async def get_models(
}
if url_idx is None:
models = await get_all_models()
models = await get_all_models(request)
else:
url = request.app.state.config.OPENAI_API_BASE_URLS[url_idx]
key = request.app.state.config.OPENAI_API_KEYS[url_idx]