Spaces:
Sleeping
Sleeping
Update index.js
Browse files
index.js
CHANGED
@@ -618,7 +618,6 @@ app.get('/v1/models', (req, res) => {
|
|
618 |
});
|
619 |
});
|
620 |
app.post('/v1/chat/completions', async (req, res) => {
|
621 |
-
res.redirect(307, '/2/grok/add_response.json');
|
622 |
try {
|
623 |
const authToken = req.headers.authorization?.replace('Bearer ', '');
|
624 |
if (authToken !== CONFIG.API.API_KEY) {
|
|
|
618 |
});
|
619 |
});
|
620 |
app.post('/v1/chat/completions', async (req, res) => {
|
|
|
621 |
try {
|
622 |
const authToken = req.headers.authorization?.replace('Bearer ', '');
|
623 |
if (authToken !== CONFIG.API.API_KEY) {
|