Skip to content

Commit c2d1a31

Browse files
authored
Merge pull request open-webui#6261 from monotykamary/main
fix: default to False if stream is unavailable
2 parents e8babe6 + 11588af commit c2d1a31

File tree

1 file changed

+1
-1
lines changed
  • backend/open_webui/apps/webui

1 file changed

+1
-1
lines changed

backend/open_webui/apps/webui/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ async def generate_function_chat_completion(form_data, user):
335335
pipe = function_module.pipe
336336
params = get_function_params(function_module, form_data, user, extra_params)
337337

338-
if form_data["stream"]:
338+
if form_data.get("stream", False):
339339

340340
async def stream_content():
341341
try:

0 commit comments

Comments
 (0)