Skip to content

Commit 94467eb

Browse files
authored
fix: There is no prompt when the model in the parameter extraction node of the [Agent] does not exist. (#4777)
1 parent 955698b commit 94467eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/application/flow/common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@ def is_valid_start_node(self):
242242
raise AppApiException(500, _('There can only be one starting node'))
243243

244244
def is_valid_model_params(self):
245-
node_list = [node for node in self.nodes if (node.type == 'ai-chat-node' or node.type == 'question-node')]
245+
node_list = [node for node in self.nodes if (
246+
node.type == 'ai-chat-node' or node.type == 'question-node' or node.type == 'parameter-extraction-node')]
246247
for node in node_list:
247248
model = QuerySet(Model).filter(id=node.properties.get('node_data', {}).get('model_id')).first()
248249
if model is None:

0 commit comments

Comments
 (0)