Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -65,7 +65,7 @@ def generate_questions_with_retry(knowledge_material, question_type, cognitive_l
|
|
65 |
while retries < max_retries:
|
66 |
try:
|
67 |
response = client.chat.completions.create(
|
68 |
-
model="gpt-4o
|
69 |
messages=[
|
70 |
{"role": "system", "content": "You are a helpful assistant for generating exam questions."},
|
71 |
{"role": "user", "content": prompt}
|
|
|
65 |
while retries < max_retries:
|
66 |
try:
|
67 |
response = client.chat.completions.create(
|
68 |
+
model="gpt-4o-mini", # or your preferred model
|
69 |
messages=[
|
70 |
{"role": "system", "content": "You are a helpful assistant for generating exam questions."},
|
71 |
{"role": "user", "content": prompt}
|