From b4acf689e3e62830eb745fe19bf088a3b254e9fb Mon Sep 17 00:00:00 2001 From: "Nate.Dorr" Date: Fri, 25 Oct 2024 08:00:37 -0500 Subject: [PATCH] update the GenerateChatCompletionForm stream to be defaulted to true. This defaults the /api/chat/ endpoint to default to streaming being true --- backend/open_webui/apps/ollama/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/apps/ollama/main.py b/backend/open_webui/apps/ollama/main.py index e33088211..9db96493e 100644 --- a/backend/open_webui/apps/ollama/main.py +++ b/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