diff --git a/crazy_functions/latex_fns/latex_toolbox.py b/crazy_functions/latex_fns/latex_toolbox.py index e39ac2d..9fc1f6c 100644 --- a/crazy_functions/latex_fns/latex_toolbox.py +++ b/crazy_functions/latex_fns/latex_toolbox.py @@ -256,6 +256,7 @@ def find_main_tex_file(file_manifest, mode): canidates_score.append(0) with open(texf, 'r', encoding='utf8', errors='ignore') as f: file_content = f.read() + file_content = rm_comments(file_content) for uw in unexpected_words: if uw in file_content: canidates_score[-1] -= 1 diff --git a/request_llm/com_sparkapi.py b/request_llm/com_sparkapi.py index 0b8d655..ae970b9 100644 --- a/request_llm/com_sparkapi.py +++ b/request_llm/com_sparkapi.py @@ -109,6 +109,7 @@ class SparkRequestInstance(): code = data['header']['code'] if code != 0: print(f'请求错误: {code}, {data}') + self.result_buf += str(data) ws.close() self.time_to_exit_event.set() else: