mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 19:59:50 +08:00
35 lines
675 B
Python
35 lines
675 B
Python
from typing import Optional
|
|
|
|
from pydantic import BaseModel, Field, PositiveInt
|
|
|
|
|
|
class RelytConfig(BaseModel):
|
|
"""
|
|
Relyt configs
|
|
"""
|
|
|
|
RELYT_HOST: Optional[str] = Field(
|
|
description='Relyt host',
|
|
default=None,
|
|
)
|
|
|
|
RELYT_PORT: PositiveInt = Field(
|
|
description='Relyt port',
|
|
default=9200,
|
|
)
|
|
|
|
RELYT_USER: Optional[str] = Field(
|
|
description='Relyt user',
|
|
default=None,
|
|
)
|
|
|
|
RELYT_PASSWORD: Optional[str] = Field(
|
|
description='Relyt password',
|
|
default=None,
|
|
)
|
|
|
|
RELYT_DATABASE: Optional[str] = Field(
|
|
description='Relyt database',
|
|
default='default',
|
|
)
|