mirror of
https://github.com/open-webui/pipelines.git
synced 2026-07-21 01:55:22 -04:00
[PR #99] [MERGED] Ollama Dynamic Vision Pipeline #304
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/pipelines/pull/99
Author: @atgehrhardt
Created: 6/18/2024
Status: ✅ Merged
Merged: 6/18/2024
Merged by: @tjbck
Base:
main← Head:main📝 Commits (4)
58d64c4Pipeline that automatically extracts image, passes to an ollama vision model, and overrides the response. This allows for you to have a primary text model and temporarily switch to a vision model whenever there is an image attachedcc93657Adding metadata7d817b6Fixed metadata. Fixed image retention.c360d2bCleaning up📊 Changes
1 file changed (+91 additions, -0 deletions)
View changed files
➕
examples/filters/dynamic_ollama_vision_filter_pipeline.py(+91 -0)📄 Description
This allows you so select an Ollama model to override with another Ollama image model. If an image is attached, it will send the image over to the override model and that model will return it's description and the initial model will take back over.
This isn't perfect, but allows you to take any text model, check the vision option, and have it process images without breaking the UI by leaning on another model.
This is JUST A STARTING POINT.
There is a LOT more we can do to make this more robust, but it serves as a good starting point.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.