镜像自地址
https://github.com/binary-husky/gpt_academic.git
已同步 2025-12-06 14:36:48 +00:00
修复bug
这个提交包含在:
@@ -55,6 +55,10 @@ def write_results_to_file(history, file_name=None):
|
|||||||
with open(f'./gpt_log/{file_name}', 'w', encoding = 'utf8') as f:
|
with open(f'./gpt_log/{file_name}', 'w', encoding = 'utf8') as f:
|
||||||
f.write('# chatGPT 分析报告\n')
|
f.write('# chatGPT 分析报告\n')
|
||||||
for i, content in enumerate(history):
|
for i, content in enumerate(history):
|
||||||
|
try: # 这个bug没找到触发条件,暂时先这样顶一下
|
||||||
|
if type(content) != str: content = str(content)
|
||||||
|
except:
|
||||||
|
continue
|
||||||
if i%2==0: f.write('## ')
|
if i%2==0: f.write('## ')
|
||||||
f.write(content)
|
f.write(content)
|
||||||
f.write('\n\n')
|
f.write('\n\n')
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户