Fix OpenRouter embeddings URL #4736

dc4e0270e70d42ba28c17a53aa428dce4a11609c

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Showing whitespace changes
src/endpoints/openrouter.js+1 -1
@@ -70,7 +70,7 @@ router.post('/models/multimodal', async (_req, res) => {
70router.post('/models/embedding', async (_req, res) => {70router.post('/models/embedding', async (_req, res) => {
71 try {71 try {
72 // The endpoint is available without authentication72 // 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',