Sfoglia il codice sorgente

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

Co-authored-by: jianglin <jianglin@wangxiaobao.com>
tags/0.6.13
jianglin1008 1 anno fa
parent
commit
cabcf94be3
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3
    3
      api/configs/middleware/vdb/tencent_vector_config.py

+ 3
- 3
api/configs/middleware/vdb/tencent_vector_config.py Vedi File

@@ -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,
)

Loading…
Annulla
Salva