Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: image was sent to an unsupported LLM when sending second message (#3268)
takatostcfb5ccc7d38b
diff --git a/api/core/workflow/nodes/llm/llm_node.py b/api/core/workflow/nodes/llm/llm_node.pyindex cf2f9b7176e..77781058c73 100644--- a/api/core/workflow/nodes/llm/llm_node.py+++ b/api/core/workflow/nodes/llm/llm_node.py@@ -10,7 +10,7 @@ from core.file.file_obj import FileVarfrom core.memory.token_buffer_memory import TokenBufferMemoryfrom core.model_manager import ModelInstance, ModelManagerfrom core.model_runtime.entities.llm_entities import LLMUsage-from core.model_runtime.entities.message_entities import PromptMessage+from core.model_runtime.entities.message_entities import PromptMessage, PromptMessageContentTypefrom core.model_runtime.entities.model_entities import ModelTypefrom core.model_runtime.model_providers.__base.large_language_model import LargeLanguageModelfrom core.model_runtime.utils.encoders import jsonable_encoder@@ -434,6 +434,22 @@ class LLMNode(BaseNode):)stop = model_config.stop+ vision_enabled = node_data.vision.enabled+ for prompt_message in prompt_messages:+ if not isinstance(prompt_message.content, str):+ prompt_message_content = []+ for content_item in prompt_message.content:+ if vision_enabled and content_item.type == PromptMessageContentType.IMAGE:+ prompt_message_content.append(content_item)+ elif content_item.type == PromptMessageContentType.TEXT:+ prompt_message_content.append(content_item)++ if len(prompt_message_content) > 1:+ prompt_message.content = prompt_message_content+ elif (len(prompt_message_content) == 1+ and prompt_message_content[0].type == PromptMessageContentType.TEXT):+ prompt_message.content = prompt_message_content[0].data+return prompt_messages, stop@classmethod