[PR #784] [MERGED] [FEAT] OpenRouter integration #3493

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/784
Author: @shatfield4
Created: 2/22/2024
Status: Merged
Merged: 2/23/2024
Merged by: @timothycarambat

Base: masterHead: 762-feat-openrouterai-intergration


📝 Commits (10+)

  • e7421c0 WIP openrouter integration
  • 36cc82f add OpenRouter options to onboarding flow and data handling
  • d5ba925 add todo to fix headers for rankings
  • 0222347 OpenRouter LLM support complete
  • 8d9d6cc Fix hanging response stream with OpenRouter
  • 912d8d1 update timeout comment
  • 4713bfb wait for first chunk to start timer
  • 9bd5bb9 sort OpenRouter models by organization
  • 9963edb uppercase first letter of organization
  • 914a80e sort grouped models by org

📊 Changes

17 files changed (+1187 additions, -13 deletions)

View changed files

📝 README.md (+1 -0)
📝 docker/.env.example (+4 -0)
frontend/src/components/LLMSelection/OpenRouterOptions/index.jsx (+97 -0)
📝 frontend/src/components/LLMSelection/TogetherAiOptions/index.jsx (+15 -13)
frontend/src/media/llmprovider/openrouter.jpeg (+0 -0)
📝 frontend/src/pages/GeneralSettings/LLMPreference/index.jsx (+9 -0)
📝 frontend/src/pages/OnboardingFlow/Steps/DataHandling/index.jsx (+9 -0)
📝 frontend/src/pages/OnboardingFlow/Steps/LLMPreference/index.jsx (+9 -0)
📝 server/.env.example (+4 -0)
📝 server/models/systemSettings.js (+12 -0)
server/utils/AiProviders/openRouter/index.js (+334 -0)
server/utils/AiProviders/openRouter/models.js (+622 -0)
server/utils/AiProviders/openRouter/scripts/.gitignore (+1 -0)
server/utils/AiProviders/openRouter/scripts/parse.mjs (+37 -0)
📝 server/utils/helpers/customModels.js (+19 -0)
📝 server/utils/helpers/index.js (+3 -0)
📝 server/utils/helpers/updateENV.js (+11 -0)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #762

What is in this change?

Describe the changes in this PR that are impactful to the repo.

  • Add OpenRouter LLM support

Additional Information

Add any other context about the Pull Request here that was not captured above.

Developer Validations

  • 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/784 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 2/22/2024 **Status:** ✅ Merged **Merged:** 2/23/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `762-feat-openrouterai-intergration` --- ### 📝 Commits (10+) - [`e7421c0`](https://github.com/Mintplex-Labs/anything-llm/commit/e7421c00b26e7d860ae99de69b714d48e65cd436) WIP openrouter integration - [`36cc82f`](https://github.com/Mintplex-Labs/anything-llm/commit/36cc82fb361478b4e44003dfe62a880cd9071947) add OpenRouter options to onboarding flow and data handling - [`d5ba925`](https://github.com/Mintplex-Labs/anything-llm/commit/d5ba925a70556a2c91340f322ea1235f0c739f22) add todo to fix headers for rankings - [`0222347`](https://github.com/Mintplex-Labs/anything-llm/commit/0222347b9245d7eb1f9cdc2feb8d51422ad5b6a2) OpenRouter LLM support complete - [`8d9d6cc`](https://github.com/Mintplex-Labs/anything-llm/commit/8d9d6cc50f69d329c087af5d4f44ed6d9aa43036) Fix hanging response stream with OpenRouter - [`912d8d1`](https://github.com/Mintplex-Labs/anything-llm/commit/912d8d142bca0aaf1a6f8ebc2f2db61d72469b02) update timeout comment - [`4713bfb`](https://github.com/Mintplex-Labs/anything-llm/commit/4713bfb3eea4e7cab2f7248f636ece1964b2d6d2) wait for first chunk to start timer - [`9bd5bb9`](https://github.com/Mintplex-Labs/anything-llm/commit/9bd5bb98965e0da0b7340237a3b59688afbf386d) sort OpenRouter models by organization - [`9963edb`](https://github.com/Mintplex-Labs/anything-llm/commit/9963edbe3ef2f2ee7058191d9529ae50c273ebdf) uppercase first letter of organization - [`914a80e`](https://github.com/Mintplex-Labs/anything-llm/commit/914a80e77b15d02ef40789dbb8e1b102f12bbeea) sort grouped models by org ### 📊 Changes **17 files changed** (+1187 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) 📝 `docker/.env.example` (+4 -0) ➕ `frontend/src/components/LLMSelection/OpenRouterOptions/index.jsx` (+97 -0) 📝 `frontend/src/components/LLMSelection/TogetherAiOptions/index.jsx` (+15 -13) ➕ `frontend/src/media/llmprovider/openrouter.jpeg` (+0 -0) 📝 `frontend/src/pages/GeneralSettings/LLMPreference/index.jsx` (+9 -0) 📝 `frontend/src/pages/OnboardingFlow/Steps/DataHandling/index.jsx` (+9 -0) 📝 `frontend/src/pages/OnboardingFlow/Steps/LLMPreference/index.jsx` (+9 -0) 📝 `server/.env.example` (+4 -0) 📝 `server/models/systemSettings.js` (+12 -0) ➕ `server/utils/AiProviders/openRouter/index.js` (+334 -0) ➕ `server/utils/AiProviders/openRouter/models.js` (+622 -0) ➕ `server/utils/AiProviders/openRouter/scripts/.gitignore` (+1 -0) ➕ `server/utils/AiProviders/openRouter/scripts/parse.mjs` (+37 -0) 📝 `server/utils/helpers/customModels.js` (+19 -0) 📝 `server/utils/helpers/index.js` (+3 -0) 📝 `server/utils/helpers/updateENV.js` (+11 -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 #762 ### What is in this change? Describe the changes in this PR that are impactful to the repo. - Add OpenRouter LLM support ### Additional Information Add any other context about the Pull Request here that was not captured above. ### Developer Validations <!-- All of the applicable items should be checked. --> - [ ] 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 --- <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:33:54 -05:00
yindo closed this issue 2026-02-22 18:33:54 -05:00
yindo changed title from [PR #784] [FEAT] OpenRouter integration to [PR #784] [MERGED] [FEAT] OpenRouter integration 2026-06-05 15:13:42 -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#3493