From df2ef7940c3bcff6b33d5ef06139a5fb96649c8d Mon Sep 17 00:00:00 2001 From: lbykkkk Date: Tue, 5 Nov 2024 02:08:12 +0800 Subject: [PATCH] up --- crazy_functions/批量文件询问.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crazy_functions/批量文件询问.py b/crazy_functions/批量文件询问.py index c463065a..87c960b8 100644 --- a/crazy_functions/批量文件询问.py +++ b/crazy_functions/批量文件询问.py @@ -355,8 +355,8 @@ class BatchDocumentSummarizer: if len(summaries) > 1: # 多片段文件需要生成整体总结 sorted_summaries = sorted(summaries, key=lambda x: x['index']) if self.plugin_kwargs.get("advanced_arg"): - i_say = (f"根据以下内容,按要求:{self.plugin_kwargs['advanced_arg']}," - f"总结文件 {os.path.basename(rel_path)} 的主要内容。") + + i_say = f'请按照用户要求对文件内容进行处理,用户要求为:{self.plugin_kwargs["advanced_arg"]}:' else: i_say = f"请总结文件 {os.path.basename(rel_path)} 的主要内容,不超过500字。" @@ -364,11 +364,11 @@ class BatchDocumentSummarizer: summary_texts = [s['summary'] for s in sorted_summaries] response_collection = yield from request_gpt_model_multi_threads_with_very_awesome_ui_and_high_efficiency( inputs_array=[i_say], - inputs_show_user_array=[f"生成 {rel_path} 的总结"], + inputs_show_user_array=[f"生成 {rel_path} 的处理结果"], llm_kwargs=self.llm_kwargs, chatbot=self.chatbot, history_array=[summary_texts], - sys_prompt_array=["总结文件内容。"], + sys_prompt_array=["你是一个优秀的助手,"], ) self.file_summaries_map[rel_path] = response_collection[1] except Exception as e: