Chore: thanks to bump-pydantic (#25437)
This commit is contained in:
parent
240b65b980
commit
2ac7a9c8fc
13 changed files with 28 additions and 28 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue