Spaces:
Sleeping
Sleeping
Update server.js
Browse files
server.js
CHANGED
|
@@ -56,7 +56,7 @@ app.post('/pl', async (req, res) => {
|
|
| 56 |
}
|
| 57 |
|
| 58 |
try {
|
| 59 |
-
const response = await axios.post('https://
|
| 60 |
messages: allMessages,
|
| 61 |
max_tokens: 4000,
|
| 62 |
temperature: 0.3,
|
|
@@ -64,7 +64,7 @@ app.post('/pl', async (req, res) => {
|
|
| 64 |
presence_penalty: 0.2,
|
| 65 |
}, {
|
| 66 |
headers: {
|
| 67 |
-
'Authorization': `Bearer ${apiKey}`,
|
| 68 |
'Content-Type': 'application/json',
|
| 69 |
},
|
| 70 |
});
|
|
|
|
| 56 |
}
|
| 57 |
|
| 58 |
try {
|
| 59 |
+
const response = await axios.post('https://text.pollinations.ai/', {
|
| 60 |
messages: allMessages,
|
| 61 |
max_tokens: 4000,
|
| 62 |
temperature: 0.3,
|
|
|
|
| 64 |
presence_penalty: 0.2,
|
| 65 |
}, {
|
| 66 |
headers: {
|
| 67 |
+
// 'Authorization': `Bearer ${apiKey}`,
|
| 68 |
'Content-Type': 'application/json',
|
| 69 |
},
|
| 70 |
});
|