Timothy Jaeryang Baek 2 月之前
父节点
当前提交
d8c76e9a0c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/open_webui/main.py

+ 1 - 1
backend/open_webui/main.py

@@ -1411,7 +1411,7 @@ async def chat_completion(
         )
 
         # Model Params
-        if not stream_delta_chunk_size and model_info_params:
+        if model_info_params.get("stream_delta_chunk_size"):
             stream_delta_chunk_size = model_info_params.get("stream_delta_chunk_size")
 
         metadata = {