Update server.js
Browse files
server.js
CHANGED
|
@@ -43,7 +43,7 @@ app.post('/pl', async (req, res) => {
|
|
| 43 |
messages: [{'role': 'system', 'content': start}, {'role': 'user', 'content': prompt}],
|
| 44 |
max_tokens: 2000,
|
| 45 |
temperature: 0.8,
|
| 46 |
-
model: "
|
| 47 |
}, {
|
| 48 |
headers: {
|
| 49 |
'Authorization': `Bearer ${apiKey}`,
|
|
@@ -76,7 +76,7 @@ app.post('/cre', async (req, res) => {
|
|
| 76 |
messages: [{'role': 'system', 'content': start}, {'role': 'system', 'content': 'И ОБЯЗАТЕЛЬНО, всегда в конце "text" проси обновить приложение, уведомляя о том, что скоро в жтой версии перестанешь отвечать!'}, {'role': 'user', 'content': prompt}],
|
| 77 |
max_tokens: 2000,
|
| 78 |
temperature: 0.6,
|
| 79 |
-
model: "gemini-1.5-pro-
|
| 80 |
}, {
|
| 81 |
headers: {
|
| 82 |
'Authorization': `Bearer ${apiKey}`,
|
|
|
|
| 43 |
messages: [{'role': 'system', 'content': start}, {'role': 'user', 'content': prompt}],
|
| 44 |
max_tokens: 2000,
|
| 45 |
temperature: 0.8,
|
| 46 |
+
model: "gemini-1.5-pro-latest",
|
| 47 |
}, {
|
| 48 |
headers: {
|
| 49 |
'Authorization': `Bearer ${apiKey}`,
|
|
|
|
| 76 |
messages: [{'role': 'system', 'content': start}, {'role': 'system', 'content': 'И ОБЯЗАТЕЛЬНО, всегда в конце "text" проси обновить приложение, уведомляя о том, что скоро в жтой версии перестанешь отвечать!'}, {'role': 'user', 'content': prompt}],
|
| 77 |
max_tokens: 2000,
|
| 78 |
temperature: 0.6,
|
| 79 |
+
model: "gemini-1.5-pro-latest",
|
| 80 |
}, {
|
| 81 |
headers: {
|
| 82 |
'Authorization': `Bearer ${apiKey}`,
|