[PR #2919] [MERGED] Support historical message image inputs/attachments for n+1 queries #4175

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/2919
Author: @timothycarambat
Created: 12/30/2024
Status: Merged
Merged: 1/16/2025
Merged by: @timothycarambat

Base: masterHead: 2585-persist-historical-image-prompts


📝 Commits (7)

  • ab7bebd Support historical message image inputs/attachments for n+1 queries
  • a82633a patch gemini
  • 09c706c OpenRouter vision support cleanup
  • f8f0eb1 xai vision history support
  • d6c6e4d Mistral logging
  • 9562fee Merge branch 'master' into 2585-persist-historical-image-prompts
  • 8587941 Merge branch 'master' into 2585-persist-historical-image-prompts

📊 Changes

21 files changed (+125 additions, -31 deletions)

View changed files

📝 server/utils/AiProviders/anthropic/index.js (+2 -1)
📝 server/utils/AiProviders/apipie/index.js (+2 -1)
📝 server/utils/AiProviders/azureOpenAi/index.js (+2 -1)
📝 server/utils/AiProviders/bedrock/index.js (+3 -2)
📝 server/utils/AiProviders/gemini/index.js (+13 -2)
📝 server/utils/AiProviders/genericOpenAi/index.js (+2 -1)
📝 server/utils/AiProviders/groq/index.js (+2 -0)
📝 server/utils/AiProviders/koboldCPP/index.js (+2 -1)
📝 server/utils/AiProviders/liteLLM/index.js (+2 -1)
📝 server/utils/AiProviders/lmStudio/index.js (+2 -1)
📝 server/utils/AiProviders/localAi/index.js (+2 -1)
📝 server/utils/AiProviders/mistral/index.js (+7 -1)
📝 server/utils/AiProviders/novita/index.js (+2 -1)
📝 server/utils/AiProviders/nvidiaNim/index.js (+2 -1)
📝 server/utils/AiProviders/ollama/index.js (+2 -1)
📝 server/utils/AiProviders/openAi/index.js (+2 -1)
📝 server/utils/AiProviders/openRouter/index.js (+3 -2)
📝 server/utils/AiProviders/textGenWebUI/index.js (+2 -1)
📝 server/utils/AiProviders/xai/index.js (+9 -8)
📝 server/utils/chats/embed.js (+1 -1)

...and 1 more files

📄 Description

Pull Request Type

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

Relevant Issues

resolves #2585

What is in this change?

  • Adds support for vision models to be able to see images in the chat history beyond the initial image chat prompt message.

Additional Information

  • Only applies to support vision model providers via helper function.

Developer Validations

  • Anthropic
  • Apipie
  • Azure
  • Bedrock
  • Gemini
  • Generic OpenAI
  • KoboldCPP Can't get multimodal models to run
  • LiteLLM
  • LMStudio
  • LocalAI
  • Mistral
  • Novita (even supports images?)
  • NVIDIA NIM
  • Ollama
  • OpenAI
  • OpenRouter
  • TextGenWebUI Does not support multimodality via API
  • XAI

Other impacted endpoints:

  • Ensure embed api is functioning
  • Ensure in-app chat is functioning
  • Ensure apiChatHandler api is functioning
  • 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/2919 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 12/30/2024 **Status:** ✅ Merged **Merged:** 1/16/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `2585-persist-historical-image-prompts` --- ### 📝 Commits (7) - [`ab7bebd`](https://github.com/Mintplex-Labs/anything-llm/commit/ab7bebd7bf025d6a889ad4ffc864b0953d160b50) Support historical message image inputs/attachments for n+1 queries - [`a82633a`](https://github.com/Mintplex-Labs/anything-llm/commit/a82633af8c083ef9e561fa702065395776c9d65b) patch gemini - [`09c706c`](https://github.com/Mintplex-Labs/anything-llm/commit/09c706c6b5718c3edfd159ed30a07449ee6ae888) OpenRouter vision support cleanup - [`f8f0eb1`](https://github.com/Mintplex-Labs/anything-llm/commit/f8f0eb1d2f7d2d4ca4b6975d5e623e0c1abd106c) xai vision history support - [`d6c6e4d`](https://github.com/Mintplex-Labs/anything-llm/commit/d6c6e4da42bc4fecd177622bd75da5315a26f0ba) Mistral logging - [`9562fee`](https://github.com/Mintplex-Labs/anything-llm/commit/9562feef3a4f3a7d7c3d96b95ec65fbf995d016b) Merge branch 'master' into 2585-persist-historical-image-prompts - [`8587941`](https://github.com/Mintplex-Labs/anything-llm/commit/858794128f2d0476f358accef40dcb9b8d799da6) Merge branch 'master' into 2585-persist-historical-image-prompts ### 📊 Changes **21 files changed** (+125 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `server/utils/AiProviders/anthropic/index.js` (+2 -1) 📝 `server/utils/AiProviders/apipie/index.js` (+2 -1) 📝 `server/utils/AiProviders/azureOpenAi/index.js` (+2 -1) 📝 `server/utils/AiProviders/bedrock/index.js` (+3 -2) 📝 `server/utils/AiProviders/gemini/index.js` (+13 -2) 📝 `server/utils/AiProviders/genericOpenAi/index.js` (+2 -1) 📝 `server/utils/AiProviders/groq/index.js` (+2 -0) 📝 `server/utils/AiProviders/koboldCPP/index.js` (+2 -1) 📝 `server/utils/AiProviders/liteLLM/index.js` (+2 -1) 📝 `server/utils/AiProviders/lmStudio/index.js` (+2 -1) 📝 `server/utils/AiProviders/localAi/index.js` (+2 -1) 📝 `server/utils/AiProviders/mistral/index.js` (+7 -1) 📝 `server/utils/AiProviders/novita/index.js` (+2 -1) 📝 `server/utils/AiProviders/nvidiaNim/index.js` (+2 -1) 📝 `server/utils/AiProviders/ollama/index.js` (+2 -1) 📝 `server/utils/AiProviders/openAi/index.js` (+2 -1) 📝 `server/utils/AiProviders/openRouter/index.js` (+3 -2) 📝 `server/utils/AiProviders/textGenWebUI/index.js` (+2 -1) 📝 `server/utils/AiProviders/xai/index.js` (+9 -8) 📝 `server/utils/chats/embed.js` (+1 -1) _...and 1 more files_ </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [x] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #2585 ### What is in this change? - Adds support for vision models to be able to see images in the chat history beyond the initial image chat prompt message. ### Additional Information - Only applies to support vision model providers via helper function. <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations - [x] Anthropic - [x] Apipie - [x] Azure - [x] Bedrock - [x] Gemini - [x] Generic OpenAI - [ ] ~KoboldCPP~ Can't get multimodal models to run - [x] LiteLLM - [x] LMStudio - [ ] LocalAI - [x] Mistral - [ ] ~Novita (even supports images?)~ - [x] NVIDIA NIM - [x] Ollama - [x] OpenAI - [x] OpenRouter - [ ] ~TextGenWebUI~ Does not support multimodality via API - [x] XAI Other impacted endpoints: - Ensure `embed` api is functioning - Ensure in-app chat is functioning - Ensure `apiChatHandler` api is functioning <!-- 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 - [ ] 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:35:17 -05:00
yindo closed this issue 2026-02-22 18:35:17 -05:00
yindo changed title from [PR #2919] Support historical message image inputs/attachments for n+1 queries to [PR #2919] [MERGED] Support historical message image inputs/attachments for n+1 queries 2026-06-05 15:17:13 -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#4175