From f1083d973e9cbc9e12d29c3049990b53620ad934 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Tue, 26 Nov 2024 15:44:20 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=96=87=E6=A1=A3=E6=8F=90?= =?UTF-8?q?=E5=8F=96details=E4=BF=9D=E5=AD=98content=E9=95=BF=E5=BA=A6?= =?UTF-8?q?=E9=99=90=E5=88=B6=E4=B8=BA500?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/base_document_extract_node.py | 2 +- ui/src/components/ai-chat/ExecutionDetailDialog.vue | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/apps/application/flow/step_node/document_extract_node/impl/base_document_extract_node.py b/apps/application/flow/step_node/document_extract_node/impl/base_document_extract_node.py index 3cb1d601c..2b30a9320 100644 --- a/apps/application/flow/step_node/document_extract_node/impl/base_document_extract_node.py +++ b/apps/application/flow/step_node/document_extract_node/impl/base_document_extract_node.py @@ -40,7 +40,7 @@ class BaseDocumentExtractNode(IDocumentExtractNode): "index": index, 'run_time': self.context.get('run_time'), 'type': self.node.type, - # 'content': self.context.get('content'), # 不保存content内容,因为content内容可能会很大 + 'content': self.context.get('content')[:500] + '...', # 不保存content全部内容,因为content内容可能会很大 'status': self.status, 'err_message': self.err_message, 'document_list': self.context.get('document_list') diff --git a/ui/src/components/ai-chat/ExecutionDetailDialog.vue b/ui/src/components/ai-chat/ExecutionDetailDialog.vue index 77cf14d79..673de74d7 100644 --- a/ui/src/components/ai-chat/ExecutionDetailDialog.vue +++ b/ui/src/components/ai-chat/ExecutionDetailDialog.vue @@ -218,7 +218,16 @@