mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-06-04 11:14:10 +08:00
40 lines
846 B
Python
40 lines
846 B
Python
from typing import Optional
|
|
|
|
from pydantic import BaseModel, Field, PositiveInt
|
|
|
|
|
|
class ChromaConfig(BaseModel):
|
|
"""
|
|
Chroma configs
|
|
"""
|
|
|
|
CHROMA_HOST: Optional[str] = Field(
|
|
description='Chroma host',
|
|
default=None,
|
|
)
|
|
|
|
CHROMA_PORT: PositiveInt = Field(
|
|
description='Chroma port',
|
|
default=8000,
|
|
)
|
|
|
|
CHROMA_TENANT: Optional[str] = Field(
|
|
description='Chroma database',
|
|
default=None,
|
|
)
|
|
|
|
CHROMA_DATABASE: Optional[str] = Field(
|
|
description='Chroma database',
|
|
default=None,
|
|
)
|
|
|
|
CHROMA_AUTH_PROVIDER: Optional[str] = Field(
|
|
description='Chroma authentication provider',
|
|
default=None,
|
|
)
|
|
|
|
CHROMA_AUTH_CREDENTIALS: Optional[str] = Field(
|
|
description='Chroma authentication credentials',
|
|
default=None,
|
|
)
|