[PR #14] check for images in all messages of the chat - not only the last one #14

Open
opened 2026-02-15 21:15:30 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/functions/pull/14
Author: @jegranado
Created: 11/27/2025
Status: 🔄 Open

Base: mainHead: patch-1


📝 Commits (1)

  • c351f59 check for images in all messages of the chat - not only the last one

📊 Changes

1 file changed (+12 additions, -1 deletions)

View changed files

📝 functions/filters/dynamic_vision_router/main.py (+12 -1)

📄 Description

It was checking only the last image of the chat, meaning that if the user continued the conversation, it would break because the original model may not accept images/multi-modal inputs.

With this change, it checks the entire history for images before deciding to route - or not - the request, ensuring that follow-up questions are still analyzed by the vison-enabled model.


🔄 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/open-webui/functions/pull/14 **Author:** [@jegranado](https://github.com/jegranado) **Created:** 11/27/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`c351f59`](https://github.com/open-webui/functions/commit/c351f59fd02bb11ce7fe1c30f25c82441b6fb60a) check for images in all messages of the chat - not only the last one ### 📊 Changes **1 file changed** (+12 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `functions/filters/dynamic_vision_router/main.py` (+12 -1) </details> ### 📄 Description It was checking only the last image of the chat, meaning that if the user continued the conversation, it would break because the original model may not accept images/multi-modal inputs. With this change, it checks the entire history for images before deciding to route - or not - the request, ensuring that follow-up questions are still analyzed by the vison-enabled model. --- <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-15 21:15:30 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: open-webui/functions#14