fix: default to False if stream is unavailable

This commit is contained in:
Tom X Nguyen 2024-10-18 11:33:08 +07:00
parent e8babe62bc
commit 11588af34c
No known key found for this signature in database
GPG Key ID: 29D388307C4B5D5D

View File

@ -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: