Chore: thanks to bump-pydantic (#25437)

This commit is contained in:
Yongtao Huang 2025-09-09 20:07:17 +08:00 committed by GitHub
commit 2ac7a9c8fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 28 additions and 28 deletions

View file

@ -28,8 +28,8 @@ def create_ssl_context() -> ssl.SSLContext:
class HuaweiCloudVectorConfig(BaseModel):
hosts: str
username: str | None
password: str | None
username: str | None = None
password: str | None = None
@model_validator(mode="before")
@classmethod

View file

@ -24,10 +24,10 @@ logger = logging.getLogger(__name__)
class TencentConfig(BaseModel):
url: str
api_key: Optional[str]
api_key: Optional[str] = None
timeout: float = 30
username: Optional[str]
database: Optional[str]
username: Optional[str] = None
database: Optional[str] = None
index_type: str = "HNSW"
metric_type: str = "IP"
shard: int = 1