history ng patch 1

This commit is contained in:
binary-husky
2024-12-21 11:27:53 +08:00
parent 17b5c22e61
commit 4ec87fbb54
2 changed files with 29 additions and 21 deletions

View File

@@ -178,6 +178,7 @@ def update_ui(chatbot:ChatBotWithCookies, history:list, msg:str="正常", **kwar
else:
chatbot_gr = chatbot
history = [str(history_item) for history_item in history] # ensure all items are string
json_history = json.dumps(history, ensure_ascii=False)
yield cookies, chatbot_gr, json_history, msg