Repository navigation
Conversation
…Content (#21925) Co-Authored-By: Samarth Chitgopekar <67826352+http-samc@users.noreply.github.com>
This was referenced Oct 1, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


This is a backport of #21925 to the release-v6.0 branch. It was ported manually because the automated cherry-pick conflicts (see below). FYI @http-samc
Background
Same as #21925. Gemini agentic video understanding (
mediaProcessing) and static clipping/frame rate (videoMetadata) were unreachable fromgoogle(...)/generateContent, and the option was silently dropped.Summary
This is a port of #21925 to the
@ai-sdk/google3.0.x layout. It changesconvert-to-google-generative-ai-messages.tsandgoogle-generative-ai-prompt.ts, and resolves namespaces viagetGoogleProviderOptions.providerOptions.google.processingon uservideo/*file parts maps as follows:'agentic'becomesmediaProcessing: 'AGENTIC'.'static'becomesmediaProcessing: 'STATIC'.{ type: 'static', startOffset?, endOffset?, fps? }becomesSTATICplusvideoMetadata.15-google-generative-ai.mdx. Unlike onmain, there is noGoogleInteractionsVideoOptionstype and no Interactions cross-link, because this branch's Interactions provider doesn't support agentic video.examples/ai-functions/src/generate-text/google/agentic-video.ts.Why manual:
git cherry-pickof #21925 ontorelease-v6.0conflicts onconvert-to-google-generative-ai-messages.ts,google-prompt.ts(absent here) and the docs file. This branch is namedbackport-pr-21925-to-release-v6.0, so if thebackportlabel is applied to #21925 the workflow detects this PR and skips instead of opening a conflict-marker PR.End-to-End Verification
Same live check as #21925, run against this branch's source:
gemini-3.7-flashwith a 10s clip that has 8 flashes in total (4 in the first 5s).processing'agentic'{ type: 'static', startOffset: 0, endOffset: 5, fps: 5 }* On this branch,
usage.inputTokensexcludestoolUsePromptTokenCount(Google reported about 35k tool-use tokens for this request). The fix is #21033 onmain, which cherry-picks cleanly ontorelease-v6.0. Please apply thebackportlabel to #21033 so the workflow carries it over.Package checks:
vitest(node: 647 passed; edge for the changed suites: 236 passed),tsc --build,oxfmt,oxlint.Checklist
pnpm changesetin the project root)Related Issues
Backport of #21925. Continues to
release-v5.0in #21927.