| 70 | router.post('/models/embedding', async (_req, res) => { | 70 | router.post('/models/embedding', async (_req, res) => { |
| 71 | try { | 71 | try { |
| 72 | // The endpoint is available without authentication | 72 | // The endpoint is available without authentication |
| 73 | const response = await fetch(`${API_OPENROUTER}/models/embeddings`, { | 73 | const response = await fetch(`${API_OPENROUTER}/embeddings/models`, { |
| 74 | method: 'GET', | 74 | method: 'GET', |
| 75 | headers: { | 75 | headers: { |
| 76 | 'Accept': 'application/json', | 76 | 'Accept': 'application/json', |