You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gcgj-dify-1.7.0/api/configs/school/__init__.py

56 lines
1.4 KiB
Python

from typing import Optional
from pydantic import Field
from pydantic_settings import BaseSettings
class SchoolConfig(BaseSettings):
"""
Configuration for school-level features.
"""
DEFAULT_APP_ID: str = Field(
description="Default app id for school-level features.",
default="",
)
NEED_USER_PROFILE_GENERATION_APP_IDS: str = Field(
description="Development app ids for school-level features.",
default="",
)
DEFAULT_TENANT_ID: str = Field(
description="Default tenant id for school-level features.",
default="",
)
USER_MEMORY_GENERATION_APP_ID: str = Field(
description="App id for memory generation.",
default="",
)
USER_HEALTH_SUMMARY_GENERATION_APP_ID: str = Field(
description="App id for health summary generation.",
default="",
)
IMAGE_GENERATION_DAILY_LIMIT: int = Field(
description="Daily limit for image generation.",
default=5,
)
IMAGE_GENERATION_MIN_CONVERSATION_ROUNDS: int = Field(
description="Minimum conversation rounds for image generation.",
default=10,
)
IMAGE_GENERATION_APP_ID: Optional[str] = Field(
description="App id for image generation.",
default=None,
)
DEBUG_ADMIN_PHONE: Optional[str] = Field(
description="Debug admin phone for DEMO school-level features.",
default=None,
)