From 8efa9d6ed8039d5d7af1164031b1e4cd758d0685 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Wed, 4 Feb 2026 16:46:49 +0800 Subject: [PATCH] fix: There is no prompt when the model in the parameter extraction node of the [Agent] does not exist. --- apps/application/flow/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/application/flow/common.py b/apps/application/flow/common.py index 65aaa399d6f..dd69e4cd6fe 100644 --- a/apps/application/flow/common.py +++ b/apps/application/flow/common.py @@ -242,7 +242,8 @@ def is_valid_start_node(self): raise AppApiException(500, _('There can only be one starting node')) def is_valid_model_params(self): - node_list = [node for node in self.nodes if (node.type == 'ai-chat-node' or node.type == 'question-node')] + node_list = [node for node in self.nodes if ( + node.type == 'ai-chat-node' or node.type == 'question-node' or node.type == 'parameter-extraction-node')] for node in node_list: model = QuerySet(Model).filter(id=node.properties.get('node_data', {}).get('model_id')).first() if model is None: