This commit is contained in:
parent
45c24387d9
commit
aec50e2029
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue