Repository navigation
feat: enable VLMs - #126
Merged
Merged
Conversation
- new ImageCBlock - images argument for `m.instruct` and `Instruction` - `get_images_from_component(c)` method to extract images from components - formatter handles images now
- new formatting from Mellea Message to OpenAI message - [patch] tool calling patch to work with multiple OpenAI-compatible inference engines
Merge ProtectionsYour pull request matches the following merge protections and will not be merged until they are valid. 🟢 Enforce conventional commitWonderful, this rule succeeded.Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
|
jakelorocco
reviewed
Sep 9, 2025
jakelorocco
reviewed
Sep 9, 2025
jakelorocco
reviewed
Sep 9, 2025
jakelorocco
reviewed
Sep 9, 2025
- valid png base64 testing - better `get_images_from_component` - adding images to TemplateRepr - using images from TR for Message construction
HendrikStrobelt
marked this pull request as ready for review
September 9, 2025 21:33
jakelorocco
reviewed
Sep 9, 2025
jakelorocco
left a comment
Contributor
There was a problem hiding this comment.
looks like a test is failing due to the new message field as well
fix test failure
nrfulton
approved these changes
Sep 10, 2025
Member
|
Needs tests, but we will merge now. Opened #128 to track. |
4 of 6 tasks
akihikokuroda
pushed a commit
to akihikokuroda/mellea
that referenced
this pull request
May 27, 2026
* started VLM for Ollama: - new ImageCBlock - images argument for `m.instruct` and `Instruction` - `get_images_from_component(c)` method to extract images from components - formatter handles images now * VLM for OpenAI backend: - new formatting from Mellea Message to OpenAI message - [patch] tool calling patch to work with multiple OpenAI-compatible inference engines * - ImageCBlock --> ImageBlock - valid png base64 testing - better `get_images_from_component` - adding images to TemplateRepr - using images from TR for Message construction * - m.instruct takes list of PIL as well now. * - m.chat takes images now * - fixing openai tool args * LiteLLM uses OPENAI formatting for VLMs. * better pretty print for Message images * examples for using vision models with different backends. * change formatter cases fix test failure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable image handling for VLMs on Ollama, OpenAI, LiteLLM backends.
HF and Wx currently only supported through LiteLLM