mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 03:16:51 +08:00
38 lines
761 B
Python
38 lines
761 B
Python
from pydantic import BaseModel, Field, PositiveInt
|
|
|
|
|
|
class MyScaleConfig(BaseModel):
|
|
"""
|
|
MyScale configs
|
|
"""
|
|
|
|
MYSCALE_HOST: str = Field(
|
|
description="MyScale host",
|
|
default="localhost",
|
|
)
|
|
|
|
MYSCALE_PORT: PositiveInt = Field(
|
|
description="MyScale port",
|
|
default=8123,
|
|
)
|
|
|
|
MYSCALE_USER: str = Field(
|
|
description="MyScale user",
|
|
default="default",
|
|
)
|
|
|
|
MYSCALE_PASSWORD: str = Field(
|
|
description="MyScale password",
|
|
default="",
|
|
)
|
|
|
|
MYSCALE_DATABASE: str = Field(
|
|
description="MyScale database name",
|
|
default="default",
|
|
)
|
|
|
|
MYSCALE_FTS_PARAMS: str = Field(
|
|
description="MyScale fts index parameters",
|
|
default="",
|
|
)
|