JANGG_AI_API / app /core /config.py
FredyHoundayi's picture
Fix pydantic validation: use Optional[str] for API keys to make them truly optional
99f98f2
raw
history blame
370 Bytes
from pydantic_settings import BaseSettings
from typing import Optional
class Settings(BaseSettings):
GROQ_API_KEY: Optional[str] = None
OPENAI_API_KEY: Optional[str] = None
DATABASE_URL: str = "sqlite:///./brain_platform.db"
ENVIRONMENT: str = "development"
class Config:
env_file = ".env"
extra = "ignore"
settings = Settings()