From 4ddb7e124ee1495279c3d06f4cd426c1ff14ff72 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 31 Mar 2024 13:40:57 -0700 Subject: [PATCH] fix: error message --- backend/apps/ollama/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/ollama/main.py b/backend/apps/ollama/main.py index 405f34dd..914bad68 100644 --- a/backend/apps/ollama/main.py +++ b/backend/apps/ollama/main.py @@ -670,7 +670,7 @@ async def generate_completion( else: raise HTTPException( status_code=400, - detail="error_detail", + detail=ERROR_MESSAGES.MODEL_NOT_FOUND(form_data.model), ) url = app.state.OLLAMA_BASE_URLS[url_idx]