Ali Abid commited on
Commit
26d7bcd
1 Parent(s): 9357dc3
Files changed (1) hide show
  1. game_manager.py +3 -2
game_manager.py CHANGED
@@ -28,9 +28,10 @@ def ai_response(question):
28
  question,
29
  )
30
  completions = openai.Completion.create(
31
- engine="gpt-3.5-turbo", prompt=prompt, max_tokens=200, n=1, temperature=0.5
32
  )
33
- response = completions["choices"][0]["text"]
 
34
  return response
35
 
36
 
 
28
  question,
29
  )
30
  completions = openai.Completion.create(
31
+ engine="text-davinci-003", prompt=prompt, max_tokens=200, n=1, temperature=0.5
32
  )
33
+ response = completions["choices"][0]["text"].strip()
34
+
35
  return response
36
 
37