This commit is contained in:
parent
e71c4823ef
commit
a2cc08abc6
|
|
@ -162,8 +162,9 @@ def chat(
|
|||
txt = str(result).strip()
|
||||
|
||||
# ✅ 推荐返回结构,自动渲染 + 自动 history 追加
|
||||
yield {"text": txt}, log_state
|
||||
return
|
||||
#yield {"text": txt}, log_state
|
||||
return txt, log_state
|
||||
#return
|
||||
else:
|
||||
while thread.is_alive():
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in New Issue