mirror of
				https://github.com/nomic-ai/gpt4all.git
				synced 2025-11-03 23:47:16 +00:00 
			
		
		
		
	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:
		@@ -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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user