mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
Merge pull request #6261 from monotykamary/main
fix: default to False if stream is unavailable
This commit is contained in:
commit
c2d1a3164e
1 changed files with 1 additions and 1 deletions
|
|
@ -335,7 +335,7 @@ async def generate_function_chat_completion(form_data, user):
|
||||||
pipe = function_module.pipe
|
pipe = function_module.pipe
|
||||||
params = get_function_params(function_module, form_data, user, extra_params)
|
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():
|
async def stream_content():
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue