[PR #2001] [MERGED] Add multimodality support #3855

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/2001
Author: @timothycarambat
Created: 7/30/2024
Status: Merged
Merged: 7/31/2024
Merged by: @timothycarambat

Base: masterHead: 558-multi-modal-support


📝 Commits (10+)

📊 Changes

28 files changed (+714 additions, -92 deletions)

View changed files

📝 .github/workflows/dev-build.yaml (+1 -1)
📝 README.md (+11 -11)
📝 frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/EditMessage/index.jsx (+4 -3)
📝 frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/index.jsx (+26 -6)
📝 frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/index.jsx (+8 -2)
📝 frontend/src/components/WorkspaceChat/ChatContainer/DnDWrapper/index.jsx (+93 -14)
frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/AttachItem/index.jsx (+34 -0)
📝 frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/Attachments/index.jsx (+48 -1)
📝 frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx (+2 -0)
📝 frontend/src/components/WorkspaceChat/ChatContainer/index.jsx (+54 -29)
📝 frontend/src/components/WorkspaceChat/index.jsx (+8 -1)
📝 frontend/src/models/workspace.js (+11 -4)
📝 frontend/src/models/workspaceThread.js (+3 -2)
📝 server/endpoints/chat.js (+9 -4)
📝 server/utils/AiProviders/anthropic/index.js (+33 -1)
📝 server/utils/AiProviders/bedrock/index.js (+41 -2)
📝 server/utils/AiProviders/gemini/index.js (+27 -1)
📝 server/utils/AiProviders/koboldCPP/index.js (+36 -1)
📝 server/utils/AiProviders/liteLLM/index.js (+36 -1)
📝 server/utils/AiProviders/lmStudio/index.js (+37 -1)

...and 8 more files

📄 Description

Pull Request Type

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

Relevant Issues

resolves #558

What is in this change?

  • Adds support for MultiModal models (cloud and local LLMs).
    Supported models must be all-in-one models. If demand is high enough we will break out vision from LLM

Supported

  • Openai
  • Anthropic
  • Gemini
  • OpenRouter
  • Kobold
  • TextWebGen
  • LMStudio
  • LocalAI
  • Ollama
  • LiteLLM
  • AWS BedRock

Unsupported

  • TogetherAI
  • Azure (can be done, but requires a lot more work and package updates)
  • HuggingFace - unsupported
  • MistralAI
  • Perplexity
  • Cohere
  • Generic OAI
  • GroqAi

Additional Information

  • The use of multi-modality in a non-multi-modal LLM will simply produce an error message in the UI from the provider.

  • The DNDFileUploader was refactored to move files to a high scope as well as provide it as a context around the chat

  • API support on the backend is not in this PR and will be done later once we know this to be stable.

  • Local development docker testing

  • Supporting documentation on docs site (PR: 74

Implementation testing

  • Openai
  • Anthropic
  • Gemini
  • OpenRouter
  • Kobold
  • TextWebGen
  • LMStudio
  • LocalAI
  • Ollama
  • LiteLLM
  • AWS Bedrock

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/2001 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 7/30/2024 **Status:** ✅ Merged **Merged:** 7/31/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `558-multi-modal-support` --- ### 📝 Commits (10+) - [`0e17f33`](https://github.com/Mintplex-Labs/anything-llm/commit/0e17f33e4d67fd16d1aa39ae78946bb64728e444) Add multimodality support - [`cfb4ae3`](https://github.com/Mintplex-Labs/anything-llm/commit/cfb4ae35c11a61e697fa83998fd25cb23d1e6325) Add Bedrock, KoboldCpp,LocalAI,and TextWebGenUI multi-modal - [`541feb6`](https://github.com/Mintplex-Labs/anything-llm/commit/541feb62d305ade4b9dfb4ce0485bf7746a5c7da) temp dev build - [`6cabb44`](https://github.com/Mintplex-Labs/anything-llm/commit/6cabb44be88cb5cd15cc39a5a5fc74a44b1f9059) patch bad import - [`15dae49`](https://github.com/Mintplex-Labs/anything-llm/commit/15dae4905fc7afaf562d7553967af8eccf058acb) merge with master - [`2eab23d`](https://github.com/Mintplex-Labs/anything-llm/commit/2eab23dd963fa0701f1e41087f807dd49bb27bce) noscrolls for windows dnd - [`9473e98`](https://github.com/Mintplex-Labs/anything-llm/commit/9473e982003ee0825e92226ccb486a700c182591) noscrolls for windows dnd - [`d57ba2e`](https://github.com/Mintplex-Labs/anything-llm/commit/d57ba2e6b5f608c1e59af45972f96c8206252c5b) update README - [`73373b4`](https://github.com/Mintplex-Labs/anything-llm/commit/73373b428ff2f88587810bc6594057517b6a48ec) update README - [`1866fec`](https://github.com/Mintplex-Labs/anything-llm/commit/1866fec439323bee0d915839c111a10c628b6b22) add multimodal check ### 📊 Changes **28 files changed** (+714 additions, -92 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/dev-build.yaml` (+1 -1) 📝 `README.md` (+11 -11) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/EditMessage/index.jsx` (+4 -3) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/index.jsx` (+26 -6) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/index.jsx` (+8 -2) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/DnDWrapper/index.jsx` (+93 -14) ➕ `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/AttachItem/index.jsx` (+34 -0) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/Attachments/index.jsx` (+48 -1) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx` (+2 -0) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/index.jsx` (+54 -29) 📝 `frontend/src/components/WorkspaceChat/index.jsx` (+8 -1) 📝 `frontend/src/models/workspace.js` (+11 -4) 📝 `frontend/src/models/workspaceThread.js` (+3 -2) 📝 `server/endpoints/chat.js` (+9 -4) 📝 `server/utils/AiProviders/anthropic/index.js` (+33 -1) 📝 `server/utils/AiProviders/bedrock/index.js` (+41 -2) 📝 `server/utils/AiProviders/gemini/index.js` (+27 -1) 📝 `server/utils/AiProviders/koboldCPP/index.js` (+36 -1) 📝 `server/utils/AiProviders/liteLLM/index.js` (+36 -1) 📝 `server/utils/AiProviders/lmStudio/index.js` (+37 -1) _...and 8 more files_ </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [x] ♻️ refactor - [x] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #558 ### What is in this change? - Adds support for MultiModal models (cloud and local LLMs). **Supported models must be all-in-one models. If demand is high enough we will break out vision from LLM** ----- ### Supported - [x] Openai - [x] Anthropic - [x] Gemini - [x] OpenRouter - [x] Kobold - [x] TextWebGen - [x] LMStudio - [x] LocalAI - [x] Ollama - [x] LiteLLM - [x] AWS BedRock ### Unsupported - TogetherAI - Azure (can be done, but requires a lot more work and package updates) - HuggingFace - unsupported - MistralAI - Perplexity - Cohere - Generic OAI - GroqAi <!-- Describe the changes in this PR that are impactful to the repo. --> ### Additional Information - The use of multi-modality in a non-multi-modal LLM will simply produce an error message in the UI from the provider. - The `DNDFileUploader` was refactored to move `files` to a high scope as well as provide it as a context around the chat - `API` support on the backend **is not in this PR** and will be done later once we know this to be stable. - [x] Local development docker testing - [x] Supporting documentation on docs site (PR: [74](https://github.com/Mintplex-Labs/anythingllm-docs/pull/74) ### Implementation testing - [x] Openai - [x] Anthropic - [x] Gemini - [x] OpenRouter - [x] Kobold - [x] TextWebGen - [x] LMStudio - [x] LocalAI - [x] Ollama - [x] LiteLLM - [x] AWS Bedrock <!-- 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:38 -05:00
yindo closed this issue 2026-02-22 18:34:38 -05:00
yindo changed title from [PR #2001] Add multimodality support to [PR #2001] [MERGED] Add multimodality support 2026-06-05 15:15:34 -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#3855