Skip to content

@ai-sdk/google-vertex@5.0.152

Choose a tag to compare

@github-actions github-actions released this 02 Dec 23:33
· 1 commit to main since this release
6a156f5

Patch Changes

  • ef46867: 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.