Spaces:
Sleeping
Sleeping
attempted to fix the role error
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ def respond(message, history):
|
|
| 12 |
|
| 13 |
messages.append({"role": "user", "content": message})
|
| 14 |
|
| 15 |
-
response = client.chat_completion(messages, max_tokens = 1000, temperature =
|
| 16 |
# Changes the length of message
|
| 17 |
|
| 18 |
print(response['choices'][0]['message']['content'].strip())
|
|
|
|
| 12 |
|
| 13 |
messages.append({"role": "user", "content": message})
|
| 14 |
|
| 15 |
+
response = client.chat_completion(messages, max_tokens = 1000, temperature = 1, top_p = 0.1)
|
| 16 |
# Changes the length of message
|
| 17 |
|
| 18 |
print(response['choices'][0]['message']['content'].strip())
|