[PR #4489] [MERGED] Reimplement Cohere models for basic chat #4649

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4489
Author: @timothycarambat
Created: 10/3/2025
Status: Merged
Merged: 10/3/2025
Merged by: @timothycarambat

Base: masterHead: 4485-cohere-reimplementaion


📝 Commits (3)

  • c567167 Reimplement Cohere models
  • cfe796f fix comment
  • 901efe5 Merge branch 'master' into 4485-cohere-reimplementaion

📊 Changes

7 files changed (+1125 additions, -82 deletions)

View changed files

📝 frontend/src/components/EmbeddingSelection/CohereOptions/index.jsx (+75 -32)
📝 frontend/src/components/LLMSelection/CohereAiOptions/index.jsx (+77 -26)
📝 server/package.json (+1 -1)
📝 server/utils/AiProviders/cohere/index.js (+10 -20)
📝 server/utils/AiProviders/modelMap/legacy.js (+12 -0)
📝 server/utils/helpers/customModels.js (+39 -0)
📝 server/yarn.lock (+911 -3)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #4485

What is in this change?

  • Redo LLM implementation to grab models from endpoint and pre-filter
  • Migrate embedding models to also grab from remote
  • Add records for easy context window lookup'

** COHERE DOES STILL NOT SUPPORT AGENTS WITH THIS PR **

Additional Information

  • TODO: Add support for Cohere to use @agent directive.

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/4489 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 10/3/2025 **Status:** ✅ Merged **Merged:** 10/3/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `4485-cohere-reimplementaion` --- ### 📝 Commits (3) - [`c567167`](https://github.com/Mintplex-Labs/anything-llm/commit/c567167a7d433cc410cc7b4610c9d605807396f5) Reimplement Cohere models - [`cfe796f`](https://github.com/Mintplex-Labs/anything-llm/commit/cfe796f658aaf8c5bbfa0a731f4375ae3205f698) fix comment - [`901efe5`](https://github.com/Mintplex-Labs/anything-llm/commit/901efe509573a71da9a2a2e7851ac27fc35768b0) Merge branch 'master' into 4485-cohere-reimplementaion ### 📊 Changes **7 files changed** (+1125 additions, -82 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/EmbeddingSelection/CohereOptions/index.jsx` (+75 -32) 📝 `frontend/src/components/LLMSelection/CohereAiOptions/index.jsx` (+77 -26) 📝 `server/package.json` (+1 -1) 📝 `server/utils/AiProviders/cohere/index.js` (+10 -20) 📝 `server/utils/AiProviders/modelMap/legacy.js` (+12 -0) 📝 `server/utils/helpers/customModels.js` (+39 -0) 📝 `server/yarn.lock` (+911 -3) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [x] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #4485 ### What is in this change? - Redo LLM implementation to grab models from endpoint and pre-filter - Migrate embedding models to also grab from remote - Add records for easy context window lookup' ** COHERE DOES STILL NOT SUPPORT AGENTS WITH THIS PR ** <!-- Describe the changes in this PR that are impactful to the repo. --> ### Additional Information - TODO: Add support for Cohere to use `@agent` directive. <!-- 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:36:15 -05:00
yindo closed this issue 2026-02-22 18:36:15 -05:00
yindo changed title from [PR #4489] Reimplement Cohere models for basic chat to [PR #4489] [MERGED] Reimplement Cohere models for basic chat 2026-06-05 15:19:37 -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#4649