From a86c3b1a9abe7e3f4ee97824857f700cf3c4b34f Mon Sep 17 00:00:00 2001 From: zxy Date: Sun, 25 May 2025 21:28:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20resolve=20plugin=20model.position=20pars?= =?UTF-8?q?ing=20in=20legacy=20DSL=20(=E2=89=A40.1.5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/core/model_runtime/entities/provider_entities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/model_runtime/entities/provider_entities.py b/api/core/model_runtime/entities/provider_entities.py index d0f9ee13e5..589bb84fab 100644 --- a/api/core/model_runtime/entities/provider_entities.py +++ b/api/core/model_runtime/entities/provider_entities.py @@ -135,7 +135,7 @@ class ProviderEntity(BaseModel): model_config = ConfigDict(protected_namespaces=()) # position from plugin _position.yaml - position: Optional[dict[str, list[str]]] = {} + position: Optional[dict[str, Optional[list[str]]]] = {} @field_validator("models", mode="before") @classmethod