chore: bump pydantic to 2.11 and pydantic-settings to 2.9 (#15049)

This commit is contained in:
Bowen Liang 2025-05-08 17:39:51 +08:00 committed by GitHub
commit cbc8ebd8f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 88 additions and 71 deletions

View file

@ -173,7 +173,7 @@ class DatabaseConfig(BaseSettings):
RETRIEVAL_SERVICE_EXECUTORS: NonNegativeInt = Field(
description="Number of processes for the retrieval service, default to CPU cores.",
default=os.cpu_count(),
default=os.cpu_count() or 1,
)
@computed_field