aymanemalih commited on
Commit
ffd2f2a
·
1 Parent(s): 5ec3d66

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -314,7 +314,7 @@ def generateQuestions():
314
  results = []
315
  # Update the model name to "text-davinci-003" (Ada)
316
  question = "\n".join([f"{msg['role']}: {msg['content']}" for msg in messages])
317
- response = openai.completions.create(
318
  model="gpt-3.5-turbo-instruct",
319
  prompt=begin_message +'\n'+ context_generation + question ,
320
  max_tokens=500,
 
314
  results = []
315
  # Update the model name to "text-davinci-003" (Ada)
316
  question = "\n".join([f"{msg['role']}: {msg['content']}" for msg in messages])
317
+ response = openai.chat.completions.create(
318
  model="gpt-3.5-turbo-instruct",
319
  prompt=begin_message +'\n'+ context_generation + question ,
320
  max_tokens=500,