feat(voyage): add voyage-context-4 + voyage-4 series models - #3
Closed
fzowl wants to merge 1 commit into
Closed
Conversation
- Add voyage-context-4, voyage-4, voyage-4-large, voyage-4-lite, and voyage-multimodal-3.5 to the model cost map - Normalize contextual embedding input to list[list[str]] so the contextualized embeddings API is always called with list[str] groups (accepts str and flat list[str] inputs) - Update Voyage provider docs and add tests
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.
Summary
Adds VoyageAI's latest models to the cost map and hardens contextual embedding input handling.
Models added (
model_prices_and_context_window_backup.json)voyage/voyage-context-4— contextual, 120K ctx, $0.12/Mvoyage/voyage-4,voyage/voyage-4-large,voyage/voyage-4-lite— 32K ctx, $0.06 / $0.12 / $0.02 /Mvoyage/voyage-multimodal-3.5— 32K ctx, $0.12/MContextual embeddings input fix
VoyageContextualEmbeddingConfignow normalizes input tolist[list[str]]before calling the contextualized embeddings API. A plainstrbecomes[[str]]and a flatlist[str]becomes a single document[list[str]]; already-nested input is passed through unchanged. Ensures the API is always called withlist[str]chunk groups.Docs
Updated
docs/providers/voyage.md— supported models table, contextual section (now voyage-context-4), and model selection guide.Tests
tests/llm_translation/test_voyage_ai.py— context-4 detection + flat/str input normalization. All 16 pass locally.Reviewer double-checks
list[str]normalized as a single document; confirm that matches intended semantics.