from pydantic_settings import BaseSettings, SettingsConfigDict class AppConfig(BaseSettings): # API (env: YOULBOT_API_URL, YOULBOT_API_TOKEN, YOULBOT_API_TIMEOUT) youlbot_api_url: str = "http://localhost:8000" youlbot_api_token: str = "" youlbot_api_timeout: int = 180 # STT/TTS (env: WHISPER_MODEL_SIZE, TTS_VOICE, TTS_EDGE_VOICE) whisper_model_size: str = "small" tts_voice: str = "Yuna" tts_edge_voice: str = "ko-KR-SunHiNeural" # 서버 / 로깅 log_level: str = "INFO" server_host: str = "0.0.0.0" server_port: int = 7860 model_config = SettingsConfigDict(env_file=".env", extra="ignore")