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(entities): add validator for `VisionConfig` to handle None values (#9598)
-LAN-5838345f48c1
diff --git a/api/core/workflow/nodes/llm/entities.py b/api/core/workflow/nodes/llm/entities.pyindex b4de3124612..a25d563fe0b 100644--- a/api/core/workflow/nodes/llm/entities.py+++ b/api/core/workflow/nodes/llm/entities.py@@ -1,7 +1,7 @@from collections.abc import Sequencefrom typing import Any, Optional-from pydantic import BaseModel, Field+from pydantic import BaseModel, Field, field_validatorfrom core.model_runtime.entities import ImagePromptMessageContentfrom core.prompt.entities.advanced_prompt_entities import ChatModelMessage, CompletionModelPromptTemplate, MemoryConfig@@ -30,6 +30,13 @@ class VisionConfig(BaseModel):enabled: bool = Falseconfigs: VisionConfigOptions = Field(default_factory=VisionConfigOptions)+ @field_validator("configs", mode="before")+ @classmethod+ def convert_none_configs(cls, v: Any):+ if v is None:+ return VisionConfigOptions()+ return v+class PromptConfig(BaseModel):jinja2_variables: Optional[list[VariableSelector]] = None