Chore: thanks to bump-pydantic (#25437)

This commit is contained in:
Yongtao Huang
2025-09-09 20:07:17 +08:00
committed by GitHub
parent 240b65b980
commit 2ac7a9c8fc
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