mirror of
https://github.com/BoardWare-Genius/jarvis-models.git
synced 2025-12-13 16:53:24 +00:00
fix: add stream chat stop flag [Response END]
This commit is contained in:
@ -311,6 +311,7 @@ class Chat(Blackbox):
|
||||
except json.JSONDecodeError:
|
||||
# print("---- Error in JSON parsing ----") # 打印错误信息
|
||||
continue # 继续处理下一个chunk,直到解析成功
|
||||
yield "[Response END]"
|
||||
|
||||
else:
|
||||
print("*"*90)
|
||||
|
||||
Reference in New Issue
Block a user