Spaces:
Sleeping
Sleeping
File size: 585 Bytes
cebd780 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | """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
|