33 lines
899 B
Python
33 lines
899 B
Python
import os
|
|
QUIZ_TYPES = {
|
|
1: {
|
|
"name": "Single Line Text Inputs",
|
|
"format": """
|
|
{"question": "Your question here", "correct_answer": "Your correct answer here"}
|
|
"""
|
|
},
|
|
2: {
|
|
"name": "Multiple Choice Questions",
|
|
"format": """
|
|
{"question": "Your question here", "options": ["Option 1", "Option 2", "Option 3"], "correct_answer": "Correct Option"}
|
|
"""
|
|
},
|
|
3: {
|
|
"name": "True or False Questions",
|
|
"format": """
|
|
{"question": "Your question here", "options": ["True", "False"], "correct_answer": "True or False"}
|
|
"""
|
|
}
|
|
}
|
|
|
|
MODEL = "gpt-4o-mini"
|
|
TEMPERATURE = 0.7
|
|
|
|
|
|
class Config:
|
|
API_KEY_ACCESS = os.getenv("API_KEY_ACCESS")
|
|
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
|
|
BACKEND_XAPI_KEY = os.getenv("BACKEND_XAPI_KEY")
|
|
BACKEND_BASE_URL = os.getenv("BACKEND_BASE_URL_")
|
|
|
|
|