tyndale-ai-service/app/config.py

23 lines
464 B
Python

from typing import Literal
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
"""Application configuration loaded from environment variables."""
llm_mode: Literal["local", "remote"] = "local"
llm_remote_url: str = ""
llm_remote_token: str = ""
class Config:
env_file = ".env"
env_file_encoding = "utf-8"
# Constants
MAX_MESSAGE_LENGTH: int = 10_000
# Global settings instance
settings = Settings()