Skip to content

@ai-sdk/google-vertex@4.0.241

Choose a tag to compare

@github-actions github-actions released this 02 Dec 23:39
· 3730 commits to main since this release
913d9c5

Patch Changes

  • 8d3a562: feat(google-vertex): support multimodal embedding content

    Embedding models that use the :embedContent endpoint, such as gemini-embedding-2, now accept a per-value content provider 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's usageMetadata, including the per-modality promptTokensDetails, is returned as provider metadata. Models on the :predict endpoint ignore content and return an unsupported warning.