[PR #4682] [MERGED] Feat/add openrouter embedding models #4713

Closed
opened 2026-02-22 18:36:23 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4682
Author: @17ColinMiPerry
Created: 11/25/2025
Status: Merged
Merged: 11/25/2025
Merged by: @timothycarambat

Base: masterHead: feat/openrouter-embedding-models


📝 Commits (4)

  • c9b0d36 implemented openrouter embedding model support
  • ac41e63 ran yarn lint
  • eaf67b6 data handling entry
  • 81f4a7c Merge branch 'master' into feat/openrouter-embedding-models

📊 Changes

9 files changed (+279 additions, -7 deletions)

View changed files

📝 docker/.env.example (+4 -0)
frontend/src/components/EmbeddingSelection/OpenRouterOptions/index.jsx (+96 -0)
📝 frontend/src/pages/GeneralSettings/EmbeddingPreference/index.jsx (+16 -7)
📝 frontend/src/pages/OnboardingFlow/Steps/DataHandling/index.jsx (+8 -0)
📝 server/.env.example (+4 -0)
server/utils/EmbeddingEngines/openRouter/index.js (+126 -0)
📝 server/utils/helpers/customModels.js (+21 -0)
📝 server/utils/helpers/index.js (+3 -0)
📝 server/utils/helpers/updateENV.js (+1 -0)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #4622

What is in this change?

Added support for OpenRouter Embedding models
image

Additional Information

Embedding models are fetched with the https://openrouter.ai/api/v1/embeddings/models endpoint and used to populate the embedding models list. API key will default to use OPENROUTER_API_KEY from dotenv if set.

Developer Validations

Functionality of all current models was tested successfully (both document embedding and querying).

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/4682 **Author:** [@17ColinMiPerry](https://github.com/17ColinMiPerry) **Created:** 11/25/2025 **Status:** ✅ Merged **Merged:** 11/25/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `feat/openrouter-embedding-models` --- ### 📝 Commits (4) - [`c9b0d36`](https://github.com/Mintplex-Labs/anything-llm/commit/c9b0d36bd03577242942a5dbeafb1334690d66a0) implemented openrouter embedding model support - [`ac41e63`](https://github.com/Mintplex-Labs/anything-llm/commit/ac41e633f49f9224214a49d2fd490feead61433d) ran yarn lint - [`eaf67b6`](https://github.com/Mintplex-Labs/anything-llm/commit/eaf67b6930e8c37880508eff48f87be1ac5998b1) data handling entry - [`81f4a7c`](https://github.com/Mintplex-Labs/anything-llm/commit/81f4a7cb4530dc6327622730000f93dddad1c966) Merge branch 'master' into feat/openrouter-embedding-models ### 📊 Changes **9 files changed** (+279 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `docker/.env.example` (+4 -0) ➕ `frontend/src/components/EmbeddingSelection/OpenRouterOptions/index.jsx` (+96 -0) 📝 `frontend/src/pages/GeneralSettings/EmbeddingPreference/index.jsx` (+16 -7) 📝 `frontend/src/pages/OnboardingFlow/Steps/DataHandling/index.jsx` (+8 -0) 📝 `server/.env.example` (+4 -0) ➕ `server/utils/EmbeddingEngines/openRouter/index.js` (+126 -0) 📝 `server/utils/helpers/customModels.js` (+21 -0) 📝 `server/utils/helpers/index.js` (+3 -0) 📝 `server/utils/helpers/updateENV.js` (+1 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #4622 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> Added support for OpenRouter Embedding models <img width="1917" height="910" alt="image" src="https://github.com/user-attachments/assets/b03ada8e-ef27-4a48-b523-52599c8a73fe" /> ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> Embedding models are fetched with the https://openrouter.ai/api/v1/embeddings/models endpoint and used to populate the embedding models list. API key will default to use OPENROUTER_API_KEY from dotenv if set. ### Developer Validations Functionality of all current models was tested successfully (both document embedding and querying). <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:36:23 -05:00
yindo closed this issue 2026-02-22 18:36:23 -05:00
yindo changed title from [PR #4682] Feat/add openrouter embedding models to [PR #4682] [MERGED] Feat/add openrouter embedding models 2026-06-05 15:19:59 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4713