Skip to content

Backport: feat(google): update Interactions API implementation to cater for upstream breaking changes coming May 26#15351

Merged
felixarntz merged 4 commits into
release-v6.0from
backport-pr-15346-to-release-v6.0
May 15, 2026
Merged

Backport: feat(google): update Interactions API implementation to cater for upstream breaking changes coming May 26#15351
felixarntz merged 4 commits into
release-v6.0from
backport-pr-15346-to-release-v6.0

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented May 15, 2026

This is an automated backport of #15346 to the release-v6.0 branch. FYI @felixarntz
This backport has conflicts that need to be resolved manually. Conflicts resolved.

git cherry-pick output

Auto-merging content/providers/01-ai-sdk-providers/15-google-generative-ai.mdx
Auto-merging examples/ai-functions/src/stream-text/google/interactions-multimodal-output.ts
Auto-merging packages/google/src/interactions/build-google-interactions-stream-transform.ts
CONFLICT (content): Merge conflict in packages/google/src/interactions/build-google-interactions-stream-transform.ts
Auto-merging packages/google/src/interactions/convert-to-google-interactions-input.test.ts
CONFLICT (content): Merge conflict in packages/google/src/interactions/convert-to-google-interactions-input.test.ts
Auto-merging packages/google/src/interactions/convert-to-google-interactions-input.ts
CONFLICT (content): Merge conflict in packages/google/src/interactions/convert-to-google-interactions-input.ts
Auto-merging packages/google/src/interactions/extract-google-interactions-sources.ts
Auto-merging packages/google/src/interactions/google-interactions-language-model.test.ts
CONFLICT (content): Merge conflict in packages/google/src/interactions/google-interactions-language-model.test.ts
Auto-merging packages/google/src/interactions/google-interactions-language-model.ts
CONFLICT (content): Merge conflict in packages/google/src/interactions/google-interactions-language-model.ts
Auto-merging packages/google/src/interactions/map-google-interactions-finish-reason.ts
Auto-merging packages/google/src/interactions/parse-google-interactions-outputs.test.ts
Auto-merging packages/google/src/interactions/parse-google-interactions-outputs.ts
CONFLICT (content): Merge conflict in packages/google/src/interactions/parse-google-interactions-outputs.ts
Auto-merging packages/google/src/interactions/prepare-google-interactions-tools.test.ts
Auto-merging packages/google/src/interactions/prepare-google-interactions-tools.ts
Auto-merging packages/google/src/interactions/synthesize-google-interactions-agent-stream.ts
error: could not apply 4e825f320... feat(google): update Interactions API implementation to cater for upstream breaking changes coming May 26 (#15346)
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
hint: Disable this message with "git config set advice.mergeConflict false"

Adapt the new Gemini Interactions wire format to the v3 provider spec:
- keep V3 type names (LanguageModelV3*, SharedV3*) throughout
- map image outputs through V3 file-data shape (`data: string`); URL-only
  images fall back to `providerMetadata.google.imageUri` since V3 files do
  not support URL data
- drop V4-only test cases (text-data file parts)
- update the two new response-format examples to read `interactionId`
  from `result.providerMetadata` instead of `result.finalStep`

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@felixarntz felixarntz marked this pull request as ready for review May 15, 2026 22:19
@felixarntz felixarntz enabled auto-merge (squash) May 15, 2026 22:22
@felixarntz felixarntz merged commit ab15576 into release-v6.0 May 15, 2026
17 checks passed
@felixarntz felixarntz deleted the backport-pr-15346-to-release-v6.0 branch May 15, 2026 22:29
@github-actions
Copy link
Copy Markdown
Contributor Author

🚀 Published in:

Package Version
ai 6.0.184 github npm
@ai-sdk/angular 2.0.185 github npm
@ai-sdk/google 3.0.75 github npm
@ai-sdk/google-vertex 4.0.130 github npm
@ai-sdk/langchain 2.0.190 github npm
@ai-sdk/llamaindex 2.0.184 github npm
@ai-sdk/react 3.0.186 github npm
@ai-sdk/rsc 2.0.184 github npm
@ai-sdk/svelte 4.0.184 github npm
@ai-sdk/vue 3.0.184 github npm
@ai-sdk/xai 3.0.91 github npm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant