Repository navigation
@ai-sdk/google-vertex@4.0.241
·
3730 commits
to main
since this release
Patch Changes
-
8d3a562: feat(google-vertex): support multimodal embedding content
Embedding models that use the
:embedContentendpoint, such asgemini-embedding-2, now accept a per-valuecontentprovider option with image, video, PDF and audio parts, merged with the text value like the Google provider. Previously only the text value was sent. The response'susageMetadata, including the per-modalitypromptTokensDetails, is returned as provider metadata. Models on the:predictendpoint ignorecontentand return anunsupportedwarning.