浏览代码

Merge pull request #6261 from monotykamary/main

fix: default to False if stream is unavailable
Timothy Jaeryang Baek 6 月之前
父节点
当前提交
c2d1a3164e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/open_webui/apps/webui/main.py

+ 1 - 1
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: