mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-06-04 11:14:10 +08:00
35 lines
716 B
Python
35 lines
716 B
Python
from typing import Optional
|
|
|
|
from pydantic import BaseModel, Field, PositiveInt
|
|
|
|
|
|
class PGVectorConfig(BaseModel):
|
|
"""
|
|
PGVector configs
|
|
"""
|
|
|
|
PGVECTOR_HOST: Optional[str] = Field(
|
|
description='PGVector host',
|
|
default=None,
|
|
)
|
|
|
|
PGVECTOR_PORT: Optional[PositiveInt] = Field(
|
|
description='PGVector port',
|
|
default=None,
|
|
)
|
|
|
|
PGVECTOR_USER: Optional[str] = Field(
|
|
description='PGVector user',
|
|
default=None,
|
|
)
|
|
|
|
PGVECTOR_PASSWORD: Optional[str] = Field(
|
|
description='PGVector password',
|
|
default=None,
|
|
)
|
|
|
|
PGVECTOR_DATABASE: Optional[str] = Field(
|
|
description='PGVector database',
|
|
default=None,
|
|
)
|