From 48e62b88b23a8b4c35c51f23c897986bc6ffceea Mon Sep 17 00:00:00 2001 From: jyong <718720800@qq.com> Date: Mon, 9 Jun 2025 23:18:51 +0800 Subject: [PATCH] fix auto metadata filter --- api/core/workflow/nodes/llm/node.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/core/workflow/nodes/llm/node.py b/api/core/workflow/nodes/llm/node.py index ee181cf3bf..bc26ffeec1 100644 --- a/api/core/workflow/nodes/llm/node.py +++ b/api/core/workflow/nodes/llm/node.py @@ -775,15 +775,15 @@ class LLMNode(BaseNode[LLMNodeData]): model = ModelManager().get_model_instance( tenant_id=self.tenant_id, model_type=ModelType.LLM, - provider=self.node_data.model.provider, - model=self.node_data.model.name, + provider=model_config.provider, + model=model_config.model, ) model_schema = model.model_type_instance.get_model_schema( - model=self.node_data.model.name, + model=model_config.model, credentials=model.credentials, ) if not model_schema: - raise ModelNotExistError(f"Model {self.node_data.model.name} not exist.") + raise ModelNotExistError(f"Model {model_config.model} not exist.") if self.node_data.structured_output_enabled: if not model_schema.support_structure_output: filtered_prompt_messages = self._handle_prompt_based_schema(