This commit is contained in:
Timothy Jaeryang Baek
2024-12-12 22:32:28 -08:00
parent 1197c640c4
commit 9a081c8593
3 changed files with 19 additions and 7 deletions

View File

@@ -812,6 +812,8 @@ async def chat_completion(
user=Depends(get_verified_user),
bypass_filter: bool = False,
):
if not request.app.state.MODELS:
await get_all_models(request)
try:
model_id = form_data.get("model", None)