Explorar el Código

fix: error message

Timothy J. Baek hace 1 año
padre
commit
4ddb7e124e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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]