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