This commit is contained in:
parent
aec50e2029
commit
01ce15ddeb
|
|
@ -148,10 +148,8 @@ def chat(
|
|||
except Empty:
|
||||
continue
|
||||
|
||||
# 你用 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