From 096661b8740d762e0ca8c9e6ee3720ecc2b42585 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Wed, 7 Jan 2026 09:41:56 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- api/core/workflow/nodes/llm/node.py | 4 ++-- api/models/model.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/api/core/workflow/nodes/llm/node.py b/api/core/workflow/nodes/llm/node.py index 20de710db3..b4caa28ee0 100644 --- a/api/core/workflow/nodes/llm/node.py +++ b/api/core/workflow/nodes/llm/node.py @@ -1529,7 +1529,7 @@ class LLMNode(Node[LLMNodeData]): model_instance: ModelInstance, prompt_messages: Sequence[PromptMessage], stop: Sequence[str] | None, - files: Sequence["File"], + files: Sequence[File], variable_pool: VariablePool, node_inputs: dict[str, Any], process_data: dict[str, Any], @@ -1636,7 +1636,7 @@ class LLMNode(Node[LLMNodeData]): return tool_instances - def _extract_prompt_files(self, variable_pool: VariablePool) -> list["File"]: + def _extract_prompt_files(self, variable_pool: VariablePool) -> list[File]: """Extract files from prompt template variables.""" from core.variables import ArrayFileVariable, FileVariable diff --git a/api/models/model.py b/api/models/model.py index 617e70b992..5f8f131d89 100644 --- a/api/models/model.py +++ b/api/models/model.py @@ -2127,7 +2127,7 @@ class LLMGenerationDetail(Base): created_at: Mapped[datetime] = mapped_column(sa.DateTime, nullable=False, server_default=func.current_timestamp()) - def to_domain_model(self) -> "LLMGenerationDetailData": + def to_domain_model(self) -> LLMGenerationDetailData: """Convert to Pydantic domain model with proper validation.""" from core.app.entities.llm_generation_entities import LLMGenerationDetailData @@ -2144,14 +2144,14 @@ class LLMGenerationDetail(Base): @classmethod def from_domain_model( cls, - data: "LLMGenerationDetailData", + data: LLMGenerationDetailData, *, tenant_id: str, app_id: str, message_id: str | None = None, workflow_run_id: str | None = None, node_id: str | None = None, - ) -> "LLMGenerationDetail": + ) -> LLMGenerationDetail: """Create from Pydantic domain model.""" # Enforce association mode at object creation time as well. message_mode = message_id is not None