From 4fc429a8d19475828ae2034f4786eb82f234b3a6 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Mon, 3 Mar 2025 15:40:43 +0800 Subject: [PATCH] fix: record log content error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1052670 --user=王孝刚 应用-企业微信对接应用后,在企业微信中与应用对话,对话日志中思考过程输出了两次 https://www.tapd.cn/57709429/s/1661186 --- .../chat_pipeline/step/chat_step/impl/base_chat_step.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/application/chat_pipeline/step/chat_step/impl/base_chat_step.py b/apps/application/chat_pipeline/step/chat_step/impl/base_chat_step.py index 7395240b1..e782e7e3f 100644 --- a/apps/application/chat_pipeline/step/chat_step/impl/base_chat_step.py +++ b/apps/application/chat_pipeline/step/chat_step/impl/base_chat_step.py @@ -301,7 +301,7 @@ class BaseChatStep(IChatStep): reasoning_content = reasoning_result.get('reasoning_content') + reasoning_result_end.get( 'reasoning_content') post_response_handler.handler(chat_id, chat_record_id, paragraph_list, problem_text, - chat_result.content, manage, self, padding_problem_text, client_id, + content, manage, self, padding_problem_text, client_id, reasoning_content=reasoning_content if reasoning_content_enable else '') add_access_num(client_id, client_type, manage.context.get('application_id')) return manage.get_base_to_response().to_block_response(str(chat_id), str(chat_record_id),