From 6223b80cc4aff131f4262c33ce7786010d5574b2 Mon Sep 17 00:00:00 2001 From: Eternity <1533512157@qq.com> Date: Thu, 26 Mar 2026 16:19:01 +0800 Subject: [PATCH] fix(workflow): Fix LLM node, resolve abnormal field reading issue in message caching functionality --- api/app/core/workflow/nodes/base_node.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/app/core/workflow/nodes/base_node.py b/api/app/core/workflow/nodes/base_node.py index 0b31c9e3..8567ebbe 100644 --- a/api/app/core/workflow/nodes/base_node.py +++ b/api/app/core/workflow/nodes/base_node.py @@ -639,8 +639,8 @@ class BaseNode(ABC): return content elif isinstance(content, FileObject): - if content.content_cache.get(f"{provider}_{ModelInfo.is_omni}"): - return content.content_cache[f"{provider}_{ModelInfo.is_omni}"] + if content.content_cache.get(f"{provider}_{api_config.is_omni}"): + return content.content_cache[f"{provider}_{api_config.is_omni}"] with get_db_read() as db: multimodal_service = MultimodalService(db, api_config=api_config) file_obj = FileInput( @@ -656,7 +656,7 @@ class BaseNode(ABC): ) content.set_content(file_obj.get_content()) if message: - content.content_cache[f"{provider}_{ModelInfo.is_omni}"] = message + content.content_cache[f"{provider}_{api_config.is_omni}"] = message return message return None raise TypeError(f'Unexpected input value type - {type(content)}')