Ali Abid
commited on
Commit
•
26d7bcd
1
Parent(s):
9357dc3
changes
Browse files- 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="
|
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 |
|