Ver Fonte

fix: error message

Timothy J. Baek há 1 ano atrás
pai
commit
4ddb7e124e
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      backend/apps/ollama/main.py

+ 1 - 1
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]