famfin-api / app /core /config.py
AhmadYarAI's picture
Integrate the Open AI
28d3c64
raw
history blame contribute delete
477 Bytes
from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
# Database
DATABASE_URL: str
# JWT
JWT_SECRET: str = "changeme"
JWT_ALGORITHM: str = "HS256"
ACCESS_TOKEN_EXPIRE_MINUTES: int = 60
OPENAI_API_KEY: str | None = None
OPENAI_MODEL: str = "gpt-4.1-mini"
model_config = SettingsConfigDict(
env_file=".env",
env_file_encoding="utf-8",
extra="allow"
)
settings = Settings()