From 11588af34c026b2161af4f90c259e8c8afcec5e9 Mon Sep 17 00:00:00 2001 From: Tom X Nguyen Date: Fri, 18 Oct 2024 11:33:08 +0700 Subject: [PATCH] fix: default to False if stream is unavailable --- backend/open_webui/apps/webui/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/apps/webui/main.py b/backend/open_webui/apps/webui/main.py index 1d12d708e..b36db1054 100644 --- a/backend/open_webui/apps/webui/main.py +++ b/backend/open_webui/apps/webui/main.py @@ -335,7 +335,7 @@ async def generate_function_chat_completion(form_data, user): pipe = function_module.pipe params = get_function_params(function_module, form_data, user, extra_params) - if form_data["stream"]: + if form_data.get("stream", False): async def stream_content(): try: