From 84268744263225a34939a61bd43ab9c88f8f2bcd Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Thu, 19 Sep 2024 16:54:34 +0200 Subject: [PATCH] fix --- backend/open_webui/apps/ollama/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/open_webui/apps/ollama/main.py b/backend/open_webui/apps/ollama/main.py index 2556b4d03..6c639268e 100644 --- a/backend/open_webui/apps/ollama/main.py +++ b/backend/open_webui/apps/ollama/main.py @@ -816,7 +816,10 @@ async def generate_chat_completion( log.debug(payload) return await post_streaming_url( - f"{url}/api/chat", json.dumps(payload), content_type="application/x-ndjson" + f"{url}/api/chat", + json.dumps(payload), + stream=form_data.stream, + content_type="application/x-ndjson", )