Spaces:
Paused
Paused
Update server.js
Browse files
server.js
CHANGED
|
@@ -55,7 +55,7 @@ async function chatProxy(req) {
|
|
| 55 |
} = body;
|
| 56 |
|
| 57 |
const historyText = messages
|
| 58 |
-
.map(m => (m.role === 'user' ? '
|
| 59 |
.join('\n');
|
| 60 |
|
| 61 |
const helixPayload = {
|
|
|
|
| 55 |
} = body;
|
| 56 |
|
| 57 |
const historyText = messages
|
| 58 |
+
.map(m => (m.role === 'user' ? 'user:' : 'AI:') + m.content)
|
| 59 |
.join('\n');
|
| 60 |
|
| 61 |
const helixPayload = {
|