Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: TENCENT_VECTOR_DB_REPLICAS can be set to 0 (#5968)

jianglin1008cabcf94be374
diff --git a/api/configs/middleware/vdb/tencent_vector_config.py b/api/configs/middleware/vdb/tencent_vector_config.py
index 5cec62049e5..340ebfc705d 100644
--- a/api/configs/middleware/vdb/tencent_vector_config.py
+++ b/api/configs/middleware/vdb/tencent_vector_config.py
@@ -1,6 +1,6 @@
from typing import Optional
-from pydantic import BaseModel, Field, PositiveInt
+from pydantic import BaseModel, Field, NonNegativeInt, PositiveInt
class TencentVectorDBConfig(BaseModel):
@@ -24,7 +24,7 @@ class TencentVectorDBConfig(BaseModel):
)
TENCENT_VECTOR_DB_USERNAME: Optional[str] = Field(
- description='Tencent Vector password',
+ description='Tencent Vector username',
default=None,
)
@@ -38,7 +38,7 @@ class TencentVectorDBConfig(BaseModel):
default=1,
)
- TENCENT_VECTOR_DB_REPLICAS: PositiveInt = Field(
+ TENCENT_VECTOR_DB_REPLICAS: NonNegativeInt = Field(
description='Tencent Vector replicas',
default=2,
)