Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,14 +14,10 @@ def respond(message, history):
|
|
| 14 |
|
| 15 |
|
| 16 |
messages = [{'role':'system', 'content': 'You are a mean chatbot'}]
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
if history:
|
| 21 |
messages.extend(history)
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
response = client.chat_completion(messages, max_tokens=100)
|
| 26 |
|
| 27 |
return response['choice'][0]['message']['content'].strip()
|
|
|
|
| 14 |
|
| 15 |
|
| 16 |
messages = [{'role':'system', 'content': 'You are a mean chatbot'}]
|
| 17 |
+
|
|
|
|
|
|
|
| 18 |
if history:
|
| 19 |
messages.extend(history)
|
| 20 |
+
|
|
|
|
|
|
|
| 21 |
response = client.chat_completion(messages, max_tokens=100)
|
| 22 |
|
| 23 |
return response['choice'][0]['message']['content'].strip()
|