Spaces:
Sleeping
Sleeping
Download config.py from Khanmx99/Pak-Angels-AI-Tutor: direct link, hf CLI and curl.
- Browser
- Download file 585 Bytes
-
https://huggingface.co/spaces/Khanmx99/Pak-Angels-AI-Tutor/resolve/main/config.py
- Command line
-
hf download hf://spaces/Khanmx99/Pak-Angels-AI-Tutor/config.py
-
curl -L -o config.py https://huggingface.co/spaces/Khanmx99/Pak-Angels-AI-Tutor/resolve/main/config.py
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 | |