An/add gemini embedding 2#1752
Open
amiamaya wants to merge 2 commits into
Open
Conversation
e2be88e to
70b6f68
Compare
70b6f68 to
7d4620b
Compare
|
Any ETA on this? |
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 Google's new multimodal embedding model
gemini-embedding-2and extends the cost schema withinput_image/input_videofields so per-modality input pricing can be represented.Changes
New model
providers/google/models/gemini-embedding-2.toml— Google's first multimodal embedding model. Maps text, images, video, audio, and PDFs into a unified 3072-dim embedding space.providers/vercel/models/google/gemini-embedding-2.toml— wrapper using[extends]from the canonical Google entry.Schema
packages/core/src/schema.ts— added optionalcost.input_imageandcost.input_videofields to theCostschema, mirroring the existinginput_audiopattern.README.md— documented the new fields and added them to the example.Web rendering
packages/web/src/render.tsx— added two new sortable columns: Image Input Cost and Video Input Cost (placed after Audio Output Cost).packages/web/src/index.css— updatednth-childselectors to include the new cost columns in the dark-text/mono-font rules, and shifted the Weights-column reference from col 18 → col 24.Source
Pricing and capabilities sourced from:
Notes
Costschema is token-based.gemini-embedding-001files in wrapper provider dirs were left as-is (full duplicates rather thanextends) to keep this PR scoped.