Rathapoom commited on
Commit
ac1b347
·
verified ·
1 Parent(s): 95beb54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -78,7 +78,7 @@ def generate_questions_with_retry(knowledge_material, question_type, cognitive_l
78
  retries = 0
79
  while retries < max_retries:
80
  try:
81
- response = client.chat.completions.create(
82
  model="gpt-4o-mini",
83
  messages=[
84
  {"role": "system", "content": "You are a helpful assistant for generating exam questions."},
 
78
  retries = 0
79
  while retries < max_retries:
80
  try:
81
+ response = openai.ChatCompletion.create(
82
  model="gpt-4o-mini",
83
  messages=[
84
  {"role": "system", "content": "You are a helpful assistant for generating exam questions."},