Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,8 +9,8 @@ def respond(message, history):
|
|
| 9 |
if history:
|
| 10 |
messages.extend(history)
|
| 11 |
messages.append({"role": "user", "content": message})
|
| 12 |
-
|
| 13 |
-
|
| 14 |
|
| 15 |
def echo(message, history):
|
| 16 |
return message
|
|
|
|
| 9 |
if history:
|
| 10 |
messages.extend(history)
|
| 11 |
messages.append({"role": "user", "content": message})
|
| 12 |
+
response = client.chat_completion(messages, max_tokens = 100)
|
| 13 |
+
return response["choices"][0]["message"]["content"].strip()
|
| 14 |
|
| 15 |
def echo(message, history):
|
| 16 |
return message
|