Spaces:
Sleeping
Sleeping
| import os | |
| """ | |
| Configuration settings for the Educational LLM Application | |
| """ | |
| # OpenAI API settings | |
| OPENAI_API_KEY = os.getenv("OPENAI_API_KEY") # Or replace with your actual API key | |
| OPENAI_MODEL = "gpt-4o" # Model name | |
| OPENAI_TIMEOUT = 30 # Timeout in seconds | |
| OPENAI_MAX_RETRIES = 3 # Maximum number of retries | |
| # Application settings | |
| DEBUG_MODE = True # Enable debug output | |
| USE_FALLBACK_DATA = True # Set to True to enable fallback to mock data when API calls fail | |
| CACHE_ENABLED = False # Disable caching to always get fresh responses |