Explorar o código

update the GenerateChatCompletionForm stream to be defaulted to true.

This defaults the /api/chat/ endpoint to default to streaming being true
Nate.Dorr hai 6 meses
pai
achega
b4acf689e3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      backend/open_webui/apps/ollama/main.py

+ 1 - 1
backend/open_webui/apps/ollama/main.py

@@ -739,7 +739,7 @@ class GenerateChatCompletionForm(BaseModel):
     format: Optional[str] = None
     options: Optional[dict] = None
     template: Optional[str] = None
-    stream: Optional[bool] = None
+    stream: Optional[bool] = True
     keep_alive: Optional[Union[int, str]] = None