Skip to content

Backport: feat(google): add fileData support to embedding model#15204

Merged
github-actions[bot] merged 2 commits into
release-v6.0from
backport-pr-14183-to-release-v6.0
May 12, 2026
Merged

Backport: feat(google): add fileData support to embedding model#15204
github-actions[bot] merged 2 commits into
release-v6.0from
backport-pr-14183-to-release-v6.0

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

This is an automated backport of #14183 to the release-v6.0 branch. FYI @anaclumos

What's this?

Google Embedding models support HTTP public links, but there's no way to
use it through AI SDK! This enables it.

## Summary
- Add `fileData` (with `fileUri` and `mimeType`) to the Google embedding
content part schema, enabling embedding of remote video, audio, and PDF
content via Google Cloud Storage URIs
- Add test verifying fileData parts are correctly merged into the
embedContent request body

## Test plan
- [x] New test `should merge fileData content for single embedding`
passes
- [x] All existing embedding model tests continue to pass
- [x] Package builds successfully

---------

Co-authored-by: dancer <josh@afterima.ge>
Co-authored-by: Felix Arntz <felix.arntz@vercel.com>
@github-actions github-actions Bot enabled auto-merge (squash) May 12, 2026 14:15
@felixarntz felixarntz added the backport Admins only: add this label to a pull request in order to backport it to the prior version label May 12, 2026
@github-actions
Copy link
Copy Markdown
Contributor Author

🚀 Published in:

Package Version
ai 6.0.178
@ai-sdk/amazon-bedrock 4.0.105
@ai-sdk/angular 2.0.179
@ai-sdk/anthropic 3.0.77
@ai-sdk/google-vertex 4.0.127
@ai-sdk/langchain 2.0.184
@ai-sdk/llamaindex 2.0.178
@ai-sdk/react 3.0.180
@ai-sdk/rsc 2.0.178
@ai-sdk/svelte 4.0.178
@ai-sdk/vue 3.0.178

@github-actions github-actions Bot merged commit bb1eb98 into release-v6.0 May 12, 2026
17 checks passed
@github-actions github-actions Bot deleted the backport-pr-14183-to-release-v6.0 branch May 12, 2026 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Admins only: add this label to a pull request in order to backport it to the prior version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant