Merge branch 'SengokuCola:debug' into debug

This commit is contained in:
HYY authored and GitHub committed 2025-03-12 11:40:54 +08:00
commit 94c63e456b
8 files changed
+63 -187

No files matched your search

+1 -1
View File
@@ -237,7 +237,7 @@ class LLM_request:
delta_content = ""
accumulated_content += delta_content
# 检测流式输出文本是否结束
finish_reason = chunk["choices"][0]["finish_reason"]
finish_reason = chunk["choices"][0].get("finish_reason")
if finish_reason == "stop":
usage = chunk.get("usage", None)
if usage: