Files
WhatsAppCentralizado/services/flow-engine/app/config.py
2026-01-29 11:13:15 +00:00

23 lines
548 B
Python

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"
# OpenAI
OPENAI_API_KEY: str = ""
OPENAI_MODEL: str = "gpt-3.5-turbo"
API_GATEWAY_URL: str = "http://localhost:8000"
WHATSAPP_CORE_URL: str = "http://localhost:3001"
class Config:
env_file = ".env"
@lru_cache
def get_settings() -> Settings:
return Settings()