优化prompt 搜索,将所有上下文一起展示

This commit is contained in:
w_xiaolizu
2023-06-08 11:51:31 +08:00
parent f2cfc44b02
commit 0a6bb18a2e
2 changed files with 21 additions and 5 deletions

View File

@ -102,7 +102,7 @@ def update_ui(chatbot, history, msg='正常', *args): # 刷新界面
"""
assert isinstance(chatbot, ChatBotWithCookies), "在传递chatbot的过程中不要将其丢弃。必要时可用clear将其清空然后用for+append循环重新赋值。"
yield chatbot.get_cookies(), chatbot, history, msg
pool.submit(func_box.thread_write_chat, chatbot)
pool.submit(func_box.thread_write_chat, chatbot, history)
def update_ui_lastest_msg(lastmsg, chatbot, history, delay=1): # 刷新界面
"""