File size: 543 Bytes
833dac3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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