mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-16 13:55:54 +08:00
fix: TENCENT_VECTOR_DB_REPLICAS can be set to 0 (#5968)
Co-authored-by: jianglin <jianglin@wangxiaobao.com>
This commit is contained in:
parent
2d6624cf9e
commit
cabcf94be3
@ -1,6 +1,6 @@
|
|||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
from pydantic import BaseModel, Field, PositiveInt
|
from pydantic import BaseModel, Field, NonNegativeInt, PositiveInt
|
||||||
|
|
||||||
|
|
||||||
class TencentVectorDBConfig(BaseModel):
|
class TencentVectorDBConfig(BaseModel):
|
||||||
@ -24,7 +24,7 @@ class TencentVectorDBConfig(BaseModel):
|
|||||||
)
|
)
|
||||||
|
|
||||||
TENCENT_VECTOR_DB_USERNAME: Optional[str] = Field(
|
TENCENT_VECTOR_DB_USERNAME: Optional[str] = Field(
|
||||||
description='Tencent Vector password',
|
description='Tencent Vector username',
|
||||||
default=None,
|
default=None,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ class TencentVectorDBConfig(BaseModel):
|
|||||||
default=1,
|
default=1,
|
||||||
)
|
)
|
||||||
|
|
||||||
TENCENT_VECTOR_DB_REPLICAS: PositiveInt = Field(
|
TENCENT_VECTOR_DB_REPLICAS: NonNegativeInt = Field(
|
||||||
description='Tencent Vector replicas',
|
description='Tencent Vector replicas',
|
||||||
default=2,
|
default=2,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user