OpenRouter: Fix embeddings endpoint #4736
| @@ -59,7 +59,7 @@ router.post('/models/multimodal', async (_req, res) => { | |||
| 59 | router.post('/models/embedding', async (_req, res) => { | 59 | router.post('/models/embedding', async (_req, res) => { |
| 60 | try { | 60 | try { |
| 61 | // The endpoint is available without authentication | 61 | // The endpoint is available without authentication |
| 62 | const response = await fetch(`${API_OPENROUTER}/models`, { | 62 | const response = await fetch(`${API_OPENROUTER}/models/embeddings`, { |
| 63 | method: 'GET', | 63 | method: 'GET', |
| 64 | headers: { | 64 | headers: { |
| 65 | 'Accept': 'application/json', | 65 | 'Accept': 'application/json', |