diff --git a/apps/application/workflow/nodes/llm_node/llm_node.py b/apps/application/workflow/nodes/llm_node/llm_node.py index 1553ac83a3b..139aee1a850 100644 --- a/apps/application/workflow/nodes/llm_node/llm_node.py +++ b/apps/application/workflow/nodes/llm_node/llm_node.py @@ -390,6 +390,8 @@ def get_details(self, index: int = 0, position: dict = None, old_details: dict = "message_tokens": self.data.get("message_tokens"), "answer_tokens": self.data.get("answer_tokens"), "messages": aggregation.get_contents(), + "system": self.get_parameters().get("system"), + "prompt": self.get_parameters().get("prompt"), } ) return details diff --git a/ui/src/workflow-canvas/nodes/llm-node/details/index.vue b/ui/src/workflow-canvas/nodes/llm-node/details/index.vue index 4e37d27c6a2..6f9abf13ebc 100644 --- a/ui/src/workflow-canvas/nodes/llm-node/details/index.vue +++ b/ui/src/workflow-canvas/nodes/llm-node/details/index.vue @@ -19,10 +19,20 @@ function formatJson(value: unknown) { + +
+
系统提示词
+
{{ data.system || '-' }}
+
+ +
+
用户提示词
+
{{ data.prompt || '-' }}
+
-
消息列表
+
上下文