fix: issues by pydantic2 upgrade (#5171)

This commit is contained in:
takatost 2024-06-14 02:28:28 +08:00 • committed by GitHub
commit 5ec7d85629
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 65 additions and 231 deletions

View file

@ -97,3 +97,6 @@ class ModelSettings(BaseModel):
model_type: ModelType
enabled: bool = True
load_balancing_configs: list[ModelLoadBalancingConfiguration] = []
# pydantic configs
model_config = ConfigDict(protected_namespaces=())