Update index.js
Browse files786 unmodified lines7877887897907917927936 unmodified lines800801802803804805806786 unmodified linesallowedHeaders: ['Content-Type', 'Authorization']}));app.get('/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) => {try {const authToken = req.headers.authorization?.replace('Bearer ', '');if (CONFIG.API.IS_CUSTOM_SSO) {786 unmodified lines7877887897907917927936 unmodified lines800801802803804805806786 unmodified linesallowedHeaders: ['Content-Type', 'Authorization']}));app.get('/hf/v1/models', (req, res) => {res.json({object: "list",data: Object.keys(CONFIG.MODELS).map((model, index) => ({6 unmodified lines});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