Pak-Angels-AI-Tutor / config.py
Khanmx99's picture
Deploy Pak Angels AI Tutor
cebd780 verified
Raw
History Blame Contribute Delete
585 Bytes
"""Application configuration for Pak Angels AI Tutor."""
from __future__ import annotations
import os
APP_NAME = "Pak Angels AI Tutor"
APP_SUBTITLE = "Learn • Build • Innovate • Launch with Artificial Intelligence"
DEFAULT_MODEL = "gpt-4.1-mini"
def get_openai_api_key() -> str:
"""Read the OpenAI API key from the environment."""
return os.getenv("OPENAI_API_KEY", "").strip()
def get_openai_model() -> str:
"""Read the optional model name, falling back to a practical default."""
return os.getenv("OPENAI_MODEL", DEFAULT_MODEL).strip() or DEFAULT_MODEL