Skip to content

Commit 417b147

Browse files
committed
fix: [Application] Parameter extraction node refers to user input parameters of model type, failed to publish application
1 parent 96d9a25 commit 417b147

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/application/flow/common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ def is_valid_model_params(self):
249249
node_list = [node for node in self.nodes if (
250250
node.type == 'ai-chat-node' or node.type == 'question-node' or node.type == 'parameter-extraction-node')]
251251
for node in node_list:
252+
if (node.properties.get('node_data', {}).get('model_id_type') or 'custom') == 'reference':
253+
continue
252254
model = QuerySet(Model).filter(id=node.properties.get('node_data', {}).get('model_id')).first()
253255
if model is None:
254256
raise ValidationError(ErrorDetail(

0 commit comments

Comments
 (0)