Update index.js
Browse files786 unmodified lines7877887897907907917927936 unmodified lines800801802803803804805806786 unmodified lines allowedHeaders: ['Content-Type', 'Authorization']}));
app.get('/v1/models', (req, res) => {app.get('/hf/v1/models', (req, res) => { res.json({ object: "list", data: Object.keys(CONFIG.MODELS).map((model, index) => ({6 unmodified lines});
app.post('/v1/chat/completions', async (req, res) => {app.post('/hf/v1/chat/completions', async (req, res) => { try { const authToken = req.headers.authorization?.replace('Bearer ', ''); if (CONFIG.API.IS_CUSTOM_SSO) {index.js+2-2