fix: #18744 The model order defined in position.yaml in the Model Plugin is not taking effect. (#18756)
This commit is contained in:
parent
a944542858
commit
9bcc8041e9
2 changed files with 22 additions and 1 deletions
|
|
@ -134,6 +134,9 @@ class ProviderEntity(BaseModel):
|
|||
# pydantic configs
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
# position from plugin _position.yaml
|
||||
position: Optional[dict[str, list[str]]] = {}
|
||||
|
||||
@field_validator("models", mode="before")
|
||||
@classmethod
|
||||
def validate_models(cls, v):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue