[PR #1233] [MERGED] [FEAT] Cohere LLM and embedder support #3624

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/1233
Author: @shatfield4
Created: 4/29/2024
Status: Merged
Merged: 5/2/2024
Merged by: @timothycarambat

Base: masterHead: 912-feat-integeration-with-cohere-llms-and-embedders


📝 Commits (10+)

  • 4b7b3c6 getChatCompletion working WIP streaming
  • 1c37522 WIP
  • b50c87d working streaming WIP abort stream
  • 68cc6e4 implement cohere embedder support
  • ea46ce6 Merge branch 'master' into 912-feat-integeration-with-cohere-llms-and-embedders
  • c3fc7a2 remove inputType option from cohere embedder
  • b5ed3e1 fix cohere LLM from not aborting stream when canceled by user
  • 4b662c5 Patch Cohere implemention
  • 6eb166a add cohere to onboarding
  • 2eecf4f Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into 912-feat-integeration-with-cohere-llms-and-embedders

📊 Changes

17 files changed (+541 additions, -10 deletions)

View changed files

📝 docker/.env.example (+8 -0)
frontend/src/components/EmbeddingSelection/CohereOptions/index.jsx (+55 -0)
frontend/src/components/LLMSelection/CohereAiOptions/index.jsx (+49 -0)
📝 frontend/src/hooks/useGetProvidersModels.js (+8 -0)
frontend/src/media/llmprovider/cohere.png (+0 -0)
📝 frontend/src/pages/GeneralSettings/EmbeddingPreference/index.jsx (+10 -0)
📝 frontend/src/pages/GeneralSettings/LLMPreference/index.jsx (+10 -0)
📝 frontend/src/pages/OnboardingFlow/Steps/DataHandling/index.jsx (+15 -0)
📝 frontend/src/pages/OnboardingFlow/Steps/LLMPreference/index.jsx (+10 -0)
📝 server/.env.example (+8 -0)
📝 server/models/systemSettings.js (+4 -0)
📝 server/package.json (+1 -0)
server/utils/AiProviders/cohere/index.js (+226 -0)
server/utils/EmbeddingEngines/cohere/index.js (+86 -0)
📝 server/utils/helpers/index.js (+6 -0)
📝 server/utils/helpers/updateENV.js (+12 -0)
📝 server/yarn.lock (+33 -10)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #912
resolves #1044

What is in this change?

  • Add support for Cohere LLMs
  • Add support for Cohere embedding engine

Additional Information

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/1233 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 4/29/2024 **Status:** ✅ Merged **Merged:** 5/2/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `912-feat-integeration-with-cohere-llms-and-embedders` --- ### 📝 Commits (10+) - [`4b7b3c6`](https://github.com/Mintplex-Labs/anything-llm/commit/4b7b3c66ebae4421ad399c6b25830201704de07a) getChatCompletion working WIP streaming - [`1c37522`](https://github.com/Mintplex-Labs/anything-llm/commit/1c3752293565361418367930f667ed17e36525bb) WIP - [`b50c87d`](https://github.com/Mintplex-Labs/anything-llm/commit/b50c87d4aa427d54b6991bbd36d4bb39e4c8ebdf) working streaming WIP abort stream - [`68cc6e4`](https://github.com/Mintplex-Labs/anything-llm/commit/68cc6e4b458bc2e5f8c832f3f05672b47803e665) implement cohere embedder support - [`ea46ce6`](https://github.com/Mintplex-Labs/anything-llm/commit/ea46ce61e7e450c6b27c966a954f902a623ef9be) Merge branch 'master' into 912-feat-integeration-with-cohere-llms-and-embedders - [`c3fc7a2`](https://github.com/Mintplex-Labs/anything-llm/commit/c3fc7a2064eae213128078ea1d35ca34f375c80d) remove inputType option from cohere embedder - [`b5ed3e1`](https://github.com/Mintplex-Labs/anything-llm/commit/b5ed3e1b158527d04a1aa7e6366a0ea1f0481b4c) fix cohere LLM from not aborting stream when canceled by user - [`4b662c5`](https://github.com/Mintplex-Labs/anything-llm/commit/4b662c5f0b7499097e69fbe11ae4694c4c47a8d9) Patch Cohere implemention - [`6eb166a`](https://github.com/Mintplex-Labs/anything-llm/commit/6eb166af5329e4354634791880a8e5869f7d78b7) add cohere to onboarding - [`2eecf4f`](https://github.com/Mintplex-Labs/anything-llm/commit/2eecf4ff864a464498556065169254c2e48eb62e) Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into 912-feat-integeration-with-cohere-llms-and-embedders ### 📊 Changes **17 files changed** (+541 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `docker/.env.example` (+8 -0) ➕ `frontend/src/components/EmbeddingSelection/CohereOptions/index.jsx` (+55 -0) ➕ `frontend/src/components/LLMSelection/CohereAiOptions/index.jsx` (+49 -0) 📝 `frontend/src/hooks/useGetProvidersModels.js` (+8 -0) ➕ `frontend/src/media/llmprovider/cohere.png` (+0 -0) 📝 `frontend/src/pages/GeneralSettings/EmbeddingPreference/index.jsx` (+10 -0) 📝 `frontend/src/pages/GeneralSettings/LLMPreference/index.jsx` (+10 -0) 📝 `frontend/src/pages/OnboardingFlow/Steps/DataHandling/index.jsx` (+15 -0) 📝 `frontend/src/pages/OnboardingFlow/Steps/LLMPreference/index.jsx` (+10 -0) 📝 `server/.env.example` (+8 -0) 📝 `server/models/systemSettings.js` (+4 -0) 📝 `server/package.json` (+1 -0) ➕ `server/utils/AiProviders/cohere/index.js` (+226 -0) ➕ `server/utils/EmbeddingEngines/cohere/index.js` (+86 -0) 📝 `server/utils/helpers/index.js` (+6 -0) 📝 `server/utils/helpers/updateENV.js` (+12 -0) 📝 `server/yarn.lock` (+33 -10) </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 #912 resolves #1044 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> - Add support for Cohere LLMs - Add support for Cohere embedding engine ### 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. --> - [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:34:10 -05:00
yindo closed this issue 2026-02-22 18:34:10 -05:00
yindo changed title from [PR #1233] [FEAT] Cohere LLM and embedder support to [PR #1233] [MERGED] [FEAT] Cohere LLM and embedder support 2026-06-05 15:14:22 -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#3624