Spaces:
Sleeping
Sleeping
Update server.js
Browse files
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 |
-
'Authorization': `Bearer ${
|
92 |
'Content-Type': 'application/json',
|
93 |
},
|
94 |
});
|
|
|
88 |
try {
|
89 |
const response = await axios.post(base_url, payload, {
|
90 |
headers: {
|
91 |
+
'Authorization': `Bearer ${openai_key}`,
|
92 |
'Content-Type': 'application/json',
|
93 |
},
|
94 |
});
|