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
parent 58d9d35515
commit cbc8ebd8f5
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