浏览代码

Send last internal reply to input rather than visible

oobabooga 3 年之前
父节点
当前提交
aa1177ff15
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      server.py

+ 2 - 2
server.py

@@ -538,8 +538,8 @@ def remove_last_message(name1, name2):
         return history['visible'], last[0]
 
 def send_last_reply_to_input():
-    if len(history['visible']) > 0:
-        return history['visible'][-1][1]
+    if len(history['internal']) > 0:
+        return history['internal'][-1][1]
     else:
         return ''