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.
71 lines
1.8 KiB
Python
71 lines
1.8 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_ORG_EMAIL_DOMAIN: Optional[str] = Field(
|
|
description="Debug org email domain for DEMO school-level features.",
|
|
default=None,
|
|
)
|
|
|
|
DEBUG_ADMIN_PHONE: Optional[str] = Field(
|
|
description="Debug admin phone for DEMO school-level features.",
|
|
default=None,
|
|
)
|
|
|
|
DEBUG_ADMIN_EMAIL: Optional[str] = Field(
|
|
description="Debug admin email for DEMO school-level features.",
|
|
default=None,
|
|
)
|
|
|
|
DEBUG_CODE_FOR_LOGIN: Optional[str] = Field(
|
|
description="Default code for login",
|
|
default=None,
|
|
)
|