Repository navigation
feat(voyage): add video content block support to multimodal embeddings - #32228
Draft
silencedoctor wants to merge 1 commit into
Draft
silencedoctor wants to merge 1 commit into
silencedoctor wants to merge 1 commit into
Conversation
4 tasks done
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
silencedoctor
force-pushed
the
feat/voyage-multimodal-video-support
branch
from
July 29, 2026 11:12
1f7cc82 to
05adf41
Compare
Contributor
Voyage's multimodal embeddings API supports MP4 video via `video_url` and `video_base64` content blocks in addition to text and image. The existing `VoyageMultimodalEmbeddingConfig` added in BerriAI#30193 does not handle these — video blocks fall through to the identity branch, so OpenAI-style nested `{"url": ...}` dicts are not unwrapped and `data:video/mp4;base64,...` data URIs are not converted to the `video_base64` shape Voyage expects. Extend `_normalize_content_item` with a `video_url` branch that mirrors the existing `image_url` logic: - unwrap `{"url": ...}` dicts (OpenAI-style) - convert `data:video/mp4;base64,...` URIs to `video_base64` blocks - raise `ValueError` on missing/empty video URLs - pass explicit `video_base64` blocks through unchanged 6 new unit tests cover each path plus an end-to-end request transform with mixed text + video content. Refs BerriAI#24957 — this complements BerriAI#30193 by closing the video gap that was in the original BerriAI#24972 draft but never landed on main.
silencedoctor
force-pushed
the
feat/voyage-multimodal-video-support
branch
from
July 30, 2026 02:40
05adf41 to
06d7498
Compare
devin-ai-integration
Bot
changed the base branch from
litellm_internal_staging
to
main
September 23, 2026 15:51
This branch has not been deployed
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.
Voyage's multimodal embeddings API supports MP4 video via
video_urlandvideo_base64content blocks in addition to text and image. The existingVoyageMultimodalEmbeddingConfigadded in #30193 does not handle these — video blocks fall through to the identity branch, so OpenAI-style nested{"url": ...}dicts are not unwrapped anddata:video/mp4;base64,...data URIs are not converted to thevideo_base64shape Voyage expects.Extend
_normalize_content_itemwith avideo_urlbranch that mirrors the existingimage_urllogic:{"url": ...}dicts (OpenAI-style)data:video/mp4;base64,...URIs tovideo_base64blocksValueErroron missing/empty video URLsvideo_base64blocks through unchanged6 new unit tests cover each path plus an end-to-end request transform with mixed text + video content.
Refs #24957 — this complements #30193 by closing the video gap that was in the original #24972 draft but never landed on main.
Relevant issues
Linear ticket
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
@greptileaiand received a Confidence Score of at least 4/5 before requesting a maintainer reviewDelays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).
Screenshots / Proof of Fix
Type
🆕 New Feature
🐛 Bug Fix
🧹 Refactoring
📖 Documentation
🚄 Infrastructure
✅ Test
Changes