Merge branch 'binary-husky:master' into master

这个提交包含在:
ZheGuangLi
2023-05-03 01:40:08 +08:00
提交者 GitHub
当前提交 3d3e54f0d1
共有 2 个文件被更改,包括 3 次插入3 次删除

查看文件

@@ -13,7 +13,7 @@ def write_chat_to_file(chatbot, history=None, file_name=None):
os.makedirs('./gpt_log/', exist_ok=True)
with open(f'./gpt_log/{file_name}', 'w', encoding='utf8') as f:
from theme import advanced_css
f.write(f'<head><title>对话历史</title><style>{advanced_css}</style></head>')
f.write(f'<!DOCTYPE html><head><meta charset="utf-8"><title>对话历史</title><style>{advanced_css}</style></head>')
for i, contents in enumerate(chatbot):
for j, content in enumerate(contents):
try: # 这个bug没找到触发条件,暂时先这样顶一下