Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -99,7 +99,7 @@ def respond(message, history):
|
|
| 99 |
|
| 100 |
messages.append({"role": "user", "content": message})
|
| 101 |
|
| 102 |
-
response = client.chat_completion(messages
|
| 103 |
|
| 104 |
if hasattr(response, 'choices') and response.choices:
|
| 105 |
return response.choices[0].message.content.strip()
|
|
|
|
| 99 |
|
| 100 |
messages.append({"role": "user", "content": message})
|
| 101 |
|
| 102 |
+
response = client.chat_completion(messages)
|
| 103 |
|
| 104 |
if hasattr(response, 'choices') and response.choices:
|
| 105 |
return response.choices[0].message.content.strip()
|