Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,8 @@ def ask(question, history, behavior):
|
|
27 |
else:
|
28 |
response = openai.ChatCompletion.create(
|
29 |
model="gpt-3.5-turbo",
|
30 |
-
messages=messages
|
|
|
31 |
)["choices"][0]["message"]["content"]
|
32 |
while response.startswith("\n"):
|
33 |
response = response[1:]
|
|
|
27 |
else:
|
28 |
response = openai.ChatCompletion.create(
|
29 |
model="gpt-3.5-turbo",
|
30 |
+
messages=messages,
|
31 |
+
temperature=0.1,
|
32 |
)["choices"][0]["message"]["content"]
|
33 |
while response.startswith("\n"):
|
34 |
response = response[1:]
|