Update gpt4all-api/gpt4all_api/app/api_v1/routes/chat.py

Co-authored-by: Jared Van Bortel <cebtenzzre@gmail.com>
Signed-off-by: johannesploetner <52075191+johannesploetner@users.noreply.github.com>
This commit is contained in:
johannesploetner 2024-02-19 08:43:16 +01:00 committed by AT
parent 026ee4e46b
commit c951a5b1d3

View File

@ -50,7 +50,7 @@ async def chat_completion(request: ChatCompletionRequest):
# GPU is not implemented yet
if settings.inference_mode == "gpu":
raise HTTPException(status_code=400,
detail=f"Not implemented yet: Can only infere in CPU mode.")
detail=f"Not implemented yet: Can only infer in CPU mode.")
# we only support the configured model
if request.model != settings.model: