Update index.js
Browse files732 unmodified lines7337347357367377387396 unmodified lines746747748749750751752732 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 (authToken !== CONFIG.API.API_KEY) {732 unmodified lines7337347357367377387396 unmodified lines746747748749750751752732 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 (authToken !== CONFIG.API.API_KEY) {
index.js+2-2