Spaces:
Sleeping
Sleeping
Update server.js
Browse files
server.js
CHANGED
|
@@ -43,12 +43,12 @@ app.post('/pl', async (req, res) => {
|
|
| 43 |
|
| 44 |
if (messages && Array.isArray(messages) && messages.length > 0) {
|
| 45 |
allMessages = [
|
| 46 |
-
{ 'role': 'system', 'content':
|
| 47 |
...messages
|
| 48 |
];
|
| 49 |
} else if (prompt) {
|
| 50 |
allMessages = [
|
| 51 |
-
{ 'role': 'system', 'content':
|
| 52 |
{ 'role': 'user', 'content': prompt }
|
| 53 |
];
|
| 54 |
} else {
|
|
|
|
| 43 |
|
| 44 |
if (messages && Array.isArray(messages) && messages.length > 0) {
|
| 45 |
allMessages = [
|
| 46 |
+
{ 'role': 'system', 'content': `Если тебя спрашивают, кто ты, отвечай: "Я ИИ доктор ${chatid} и моя задача предоставлять информацию по медицинским вопросам. ${start}. Отвечай на языке: ${lang}` },
|
| 47 |
...messages
|
| 48 |
];
|
| 49 |
} else if (prompt) {
|
| 50 |
allMessages = [
|
| 51 |
+
{ 'role': 'system', 'content': `Если тебя спрашивают, кто ты, отвечай: "Я ИИ доктор ${chatid} и моя задача предоставлять информацию по медицинским вопросам. ${start}. Отвечай на языке: ${lang}` },
|
| 52 |
{ 'role': 'user', 'content': prompt }
|
| 53 |
];
|
| 54 |
} else {
|