Spaces:
Sleeping
Sleeping
Update server.js
#1
by
Rooni
- opened
server.js
CHANGED
@@ -88,7 +88,7 @@ app.post('/gen', async (req, res) => {
|
|
88 |
try {
|
89 |
const response = await axios.post(base_url, payload, {
|
90 |
headers: {
|
91 |
-
'
|
92 |
'Content-Type': 'application/json',
|
93 |
},
|
94 |
});
|
|
|
88 |
try {
|
89 |
const response = await axios.post(base_url, payload, {
|
90 |
headers: {
|
91 |
+
'x-goog-api-key': `${openai_key}`,
|
92 |
'Content-Type': 'application/json',
|
93 |
},
|
94 |
});
|