This commit is contained in:
hailin 2025-08-01 14:41:37 +08:00
parent 45c24387d9
commit aec50e2029
1 changed files with 1 additions and 0 deletions

View File

@ -151,6 +151,7 @@ def chat(
# 你用 backend 返回的其实已经是 content 字符串了,不要再转 json
txt = result.strip() if isinstance(result, str) else str(result).strip()
# 注意,这里必须 yield {"text": txt}, log_state
print("==UI OUTPUT==", repr(txt))
yield {"text": txt}, log_state
return
else: