Rathapoom commited on
Commit
495351d
·
verified ·
1 Parent(s): 54ba6a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -72,7 +72,7 @@ def generate_questions_with_retry(knowledge_material, question_type, cognitive_l
72
  try:
73
  # Use the new method `ChatCompletion.create`
74
  response = openai.ChatCompletion.create(
75
- model="gpt-3.5-turbo", # You can use "gpt-4" if available
76
  messages=[
77
  {"role": "system", "content": "You are a helpful assistant for generating exam questions."},
78
  {"role": "user", "content": prompt}
 
72
  try:
73
  # Use the new method `ChatCompletion.create`
74
  response = openai.ChatCompletion.create(
75
+ model="GPT-4o mini", # You can use "gpt-4" if available
76
  messages=[
77
  {"role": "system", "content": "You are a helpful assistant for generating exam questions."},
78
  {"role": "user", "content": prompt}