fix: add stream chat stop flag [Response END]

This commit is contained in:
headbigsile
2025-06-27 16:58:08 +08:00
committed by GitHub
parent bb9905ed3e
commit 595dd5f75e

View File

@ -311,6 +311,7 @@ class Chat(Blackbox):
except json.JSONDecodeError:
# print("---- Error in JSON parsing ----") # 打印错误信息
continue # 继续处理下一个chunk直到解析成功
yield "[Response END]"
else:
print("*"*90)