Spaces:
Sleeping
Sleeping
Update server.js
Browse files
server.js
CHANGED
@@ -52,10 +52,10 @@ app.post('/gen', async (req, res) => {
|
|
52 |
}
|
53 |
|
54 |
try {
|
55 |
-
const response = await axios.post('https://
|
56 |
messages: [{'role': 'system', 'content': start}, {'role': 'user', 'content': prompt}],
|
57 |
max_tokens: 2000,
|
58 |
-
model: "
|
59 |
}, {
|
60 |
headers: {
|
61 |
'Authorization': `Bearer ${apiKey}`,
|
|
|
52 |
}
|
53 |
|
54 |
try {
|
55 |
+
const response = await axios.post('https://geminiyufi.vercel.app/v1/chat/completions', {
|
56 |
messages: [{'role': 'system', 'content': start}, {'role': 'user', 'content': prompt}],
|
57 |
max_tokens: 2000,
|
58 |
+
model: "gemini-1.5-pro-latest",
|
59 |
}, {
|
60 |
headers: {
|
61 |
'Authorization': `Bearer ${apiKey}`,
|