from pydantic_settings import BaseSettings from functools import lru_cache class Settings(BaseSettings): DATABASE_URL: str = "postgresql://whatsapp_admin:password@localhost:5432/whatsapp_central" REDIS_URL: str = "redis://localhost:6379" # DeepSeek AI (OpenAI-compatible API) DEEPSEEK_API_KEY: str = "" DEEPSEEK_MODEL: str = "deepseek-chat" DEEPSEEK_BASE_URL: str = "https://api.deepseek.com" API_GATEWAY_URL: str = "http://localhost:8000" WHATSAPP_CORE_URL: str = "http://localhost:3001" INTEGRATIONS_URL: str = "http://localhost:8002" class Config: env_file = ".env" @lru_cache def get_settings() -> Settings: return Settings()