This commit is contained in:
hailin 2025-08-01 14:13:26 +08:00
parent a2cc08abc6
commit effd559734
1 changed files with 1 additions and 1 deletions

View File

@ -163,8 +163,8 @@ def chat(
# ✅ 推荐返回结构,自动渲染 + 自动 history 追加 # ✅ 推荐返回结构,自动渲染 + 自动 history 追加
#yield {"text": txt}, log_state #yield {"text": txt}, log_state
return txt, log_state
#return #return
return txt, log_state
else: else:
while thread.is_alive(): while thread.is_alive():
try: try: