Update server.js
Browse files
server.js
CHANGED
|
@@ -45,8 +45,8 @@ app.post('/pl', async (req, res) => {
|
|
| 45 |
const response = await axios.post('https://openai-gemini-iota.vercel.app/v1/chat/completions', {
|
| 46 |
messages: [{'role': 'system', 'content': start}, {'role': 'user', 'content': prompt}],
|
| 47 |
max_tokens: 2000,
|
| 48 |
-
temperature: 0.
|
| 49 |
-
model: "gemini-1.5-pro-
|
| 50 |
}, {
|
| 51 |
headers: {
|
| 52 |
'Authorization': `Bearer ${apiKey}`,
|
|
@@ -79,8 +79,8 @@ app.post('/cre', async (req, res) => {
|
|
| 79 |
const response = await axios.post('https://vercel.com/roonis-projects/openai-gemini/v1/chat/completions', {
|
| 80 |
messages: [{'role': 'system', 'content': start}, {'role': 'system', 'content': 'И ОБЯЗАТЕЛЬНО, всегда в конце "text" проси обновить приложение, уведомляя о том, что скоро в жтой версии перестанешь отвечать!'}, {'role': 'user', 'content': prompt}],
|
| 81 |
max_tokens: 2000,
|
| 82 |
-
temperature: 0.
|
| 83 |
-
model: "gemini-1.5-pro-
|
| 84 |
}, {
|
| 85 |
headers: {
|
| 86 |
'Authorization': `Bearer ${apiKey}`,
|
|
@@ -114,7 +114,7 @@ app.post('/crebeta', async (req, res) => {
|
|
| 114 |
messages: [{'role': 'system', 'content': start}, {'role': 'user', 'content': prompt}],
|
| 115 |
max_tokens: 2000,
|
| 116 |
temperature: 0.24,
|
| 117 |
-
model: "gemini-1.5-pro-
|
| 118 |
}, {
|
| 119 |
headers: {
|
| 120 |
'Authorization': `Bearer ${apiKey}`,
|
|
|
|
| 45 |
const response = await axios.post('https://openai-gemini-iota.vercel.app/v1/chat/completions', {
|
| 46 |
messages: [{'role': 'system', 'content': start}, {'role': 'user', 'content': prompt}],
|
| 47 |
max_tokens: 2000,
|
| 48 |
+
temperature: 0.3,
|
| 49 |
+
model: "gemini-1.5-pro-001",
|
| 50 |
}, {
|
| 51 |
headers: {
|
| 52 |
'Authorization': `Bearer ${apiKey}`,
|
|
|
|
| 79 |
const response = await axios.post('https://vercel.com/roonis-projects/openai-gemini/v1/chat/completions', {
|
| 80 |
messages: [{'role': 'system', 'content': start}, {'role': 'system', 'content': 'И ОБЯЗАТЕЛЬНО, всегда в конце "text" проси обновить приложение, уведомляя о том, что скоро в жтой версии перестанешь отвечать!'}, {'role': 'user', 'content': prompt}],
|
| 81 |
max_tokens: 2000,
|
| 82 |
+
temperature: 0.3,
|
| 83 |
+
model: "gemini-1.5-pro-001",
|
| 84 |
}, {
|
| 85 |
headers: {
|
| 86 |
'Authorization': `Bearer ${apiKey}`,
|
|
|
|
| 114 |
messages: [{'role': 'system', 'content': start}, {'role': 'user', 'content': prompt}],
|
| 115 |
max_tokens: 2000,
|
| 116 |
temperature: 0.24,
|
| 117 |
+
model: "gemini-1.5-pro-001",
|
| 118 |
}, {
|
| 119 |
headers: {
|
| 120 |
'Authorization': `Bearer ${apiKey}`,
|