增加prompt收集统计

This commit is contained in:
w_xiaolizu
2023-05-08 10:30:23 +08:00
parent 808aecab91
commit 519d0a1f42
7 changed files with 118 additions and 16 deletions

View File

@ -83,7 +83,7 @@ def update_ui(chatbot, history, msg='正常', txt='', *args): # 刷新界面
"""
刷新用户界面
"""
func_box.YamlHandle().update(key=chatbot[-1][0], value=chatbot[-1][1])
assert isinstance(chatbot, ChatBotWithCookies), "在传递chatbot的过程中不要将其丢弃。必要时可用clear将其清空然后用for+append循环重新赋值。"
yield chatbot.get_cookies(), chatbot, history, msg, txt