diff --git a/main.py b/main.py index d6e68c8..fcebfc9 100644 --- a/main.py +++ b/main.py @@ -87,7 +87,7 @@ async def update_llm_config(cfg: dict, is_auth: bool = Depends(verify_password)) @app.get("/api/llm-models") async def list_models(is_auth: bool = Depends(verify_password)): - return {"models": get_available_models()} + return {"models": await get_available_models()} # --- SYNC & ACTIONS --- @app.post("/api/sync-credentials")