@tanstack/ai-gemini breaking changes
Updated December 4, 2026
On this page
Latest version 1.3.1, released November 30, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 0.38.1 to 1.2.3: 61 breaking changes in 6 versions.
- From 0.9.0 to 1.2.3: 199 breaking changes in 25 versions.
@tanstack/ai-gemini 1.2.3 breaking changes
- Behavior changed
A Gemini chat stream that ends without a finishReason now emits RUN_ERROR with a truncated-stream reason, and onFinish no longer receives the partial text as a success. Code that relied on the partial text arriving as a successful finish... github.com
@tanstack/ai-gemini 1.2.1 breaking changes
- Behavior changed
Realtime usage totals now count thoughts tokens in completionTokens, so reported numbers will be higher. Update any usage tracking that assumed the old totals. github.com - Behavior changed
Chat streams that Gemini stops for content filtering now finish with finishReason "content_filter" instead of the previous value. Update code that checks finishReason. github.com - Behavior changed
structuredOutput
Calls that Gemini stops for content filtering now fail with a content_filter error. Handle that error in calling code. github.com - Behavior changed
structuredOutputStream
Streams that Gemini stops for content filtering now fail with a content_filter error. Handle that error in calling code. github.com
@tanstack/ai-gemini 1.2.0 breaking changes
- Behavior changed
The gemini-omni-1.1-flash model stays available until 2026-12-03. After that date Google routes requests for it to gemini-omni-1.2-flash, so users who depend on 1.1 behavior should move to 1.2. github.com - Signature changed
GeminiInteractionsVideoModels
Was const GEMINI_INTERACTIONS_VIDEO_MODELS: readonly ["gemini-omni-1.1-flash"]; now const GEMINI_INTERACTIONS_VIDEO_MODELS: readonly ["gemini-omni-1.2-flash", "gemini-omni-1.1-flash"]. npmjs.com - Signature changed
GeminiVideoModelDurationByName
Was type GeminiVideoModelDurationByName = {'veo-3.1-generate-preview': 4 | 6 | 8; 'veo-3.1-fast-generate-preview': 4 | 6 | 8; 'veo-3.1-lite-generate-preview': 4 | 6 | 8; 'gemini-omni-1.1-flash': number;}; now type... npmjs.com - Signature changed
GeminiVideoModels
Was const GEMINI_VIDEO_MODELS: readonly ["veo-3.1-generate-preview", "veo-3.1-fast-generate-preview", "veo-3.1-lite-generate-preview", "gemini-omni-1.1-flash"]; now const GEMINI_VIDEO_MODELS: readonly ["veo-3.1-generate-preview"... npmjs.com
@tanstack/ai-gemini 1.1.1 breaking changes
- Behavior changed
embed
embed() with the Gemini adapter sends inputs in sequential requests of at most 100 texts instead of one request. Vectors keep input order and Vertex billable characters are summed across requests. github.com - Signature changed
GeminiEmbeddingAdapter.client
Was protected client: GoogleGenAI; now protected client: GeminiClient. npmjs.com - Signature changed
GeminiVideoAdapter.client
Was protected client: GoogleGenAI; now protected client: GeminiClient. npmjs.com
@tanstack/ai-gemini 1.1.0 breaking changes
- Behavior changed
completionTokens
completionTokens now includes Gemini thinking tokens, so reported output token counts for thinking models go up. Code that totals or bills from completionTokens should expect higher values; completionTokensDetails.reasoningTokens is... github.com - Signature changed
GeminiFilesAdapter.delete
Was delete(id: string): Promise<void>; now delete(id: string, options?: {abortSignal?: AbortSignal;}): Promise<void>. npmjs.com - Signature changed
GeminiFilesAdapter.get
Was get(id: string): Promise<FileHandle<'gemini'>>; now get(id: string, options?: {abortSignal?: AbortSignal;}): Promise<FileHandle<'gemini'>>. npmjs.com - Signature changed
GeminiFilesAdapter.upload
Was upload(input: FileUploadInput): Promise<FileHandle<'gemini'>>; now upload(input: FileUploadInput, options?: {abortSignal?: AbortSignal;}): Promise<FileHandle<'gemini'>>. npmjs.com - Signature changed
GeminiVideoAdapter.getVideo
Was getVideo(jobId: string): Promise<VideoUrlResult>; now getVideo(jobId: string, options?: {abortSignal?: AbortSignal;}): Promise<VideoUrlResult>. npmjs.com - Signature changed
GeminiVideoAdapter.getVideoStatus
Was getVideoStatus(jobId: string): Promise<VideoStatusResult>; now getVideoStatus(jobId: string, options?: {abortSignal?: AbortSignal;}): Promise<VideoStatusResult>. npmjs.com
@tanstack/ai-gemini 1.0.0 breaking changes
- Removed
CodeExecutionTool
Each provider tool type alias is gone; use the Config name for the tool type instead. tanstack.com - Removed
ComputerUseTool
Each provider tool type alias is gone; use the Config name for the tool type instead. tanstack.com - Removed
FileSearchTool
Each provider tool type alias is gone; use the Config name for the tool type instead. tanstack.com - Removed
GEMINI_NATIVE_IMAGE_MODELS
This constant only served the retired image models and is gone. npmjs.com - Removed
Gemini25FlashImageSize
The type is gone; no direct replacement is named in the guide. npmjs.com - Removed
GeminiAnyImageProviderOptions
Every Gemini image model now uses GeminiNativeImageProviderOptions. npmjs.com - Removed
GeminiAspectRatio
This type only served the retired image models and is gone. npmjs.com - Removed
GeminiImageModelSizeByName.gemini-2.5-flash-image
GeminiImageModelSizeByName.gemini-2.5-flash-image was removed in @tanstack/ai-gemini 1.0.0 npmjs.com - Removed
GeminiImageModelSizeByName.gemini-3-pro-image-preview
GeminiImageModelSizeByName.gemini-3-pro-image-preview was removed in @tanstack/ai-gemini 1.0.0 npmjs.com - Removed
GeminiImageModelSizeByName.gemini-3.1-flash-image-preview
GeminiImageModelSizeByName.gemini-3.1-flash-image-preview was removed in @tanstack/ai-gemini 1.0.0 npmjs.com
And 33 more in this version. Sign up to see every change
Older versions
20 older versions, each with its first changes. Sign up to see every change
Show 20 older versions
@tanstack/ai-gemini 0.38.1 breaking changes
- Removed
metadata.tanstack.input
The TOOL_CALL_END event no longer includes metadata.tanstack.input; read the tool input from metadata.tanstack.args, which carries the raw argument string, instead. github.com - Behavior changed
Adapters no longer turn malformed tool arguments into {}. The tool receives a "Failed to parse tool arguments as JSON" error that the model can repair; Mistral still ends the run with an error. github.com
@tanstack/ai-gemini 0.38.0 breaking changes
- Removed
GeminiTextProviderOptions.thinkingConfig
Thinking is now set with the reasoning option of chat(). Move thinkingConfig settings to reasoning. npmjs.com - Removed
GeminiThinkingOptions
The type is gone. Use the reasoning option of chat() instead. npmjs.com
And 22 more in this version.
@tanstack/ai-gemini 0.37.0 breaking changes
- Removed
GEMINI_OMNI_FLASH_PREVIEW
The GEMINI_OMNI_FLASH_PREVIEW model metadata is removed, along with its entries in the video model lists and duration tables. Use gemini-omni-1.1-flash instead. github.com - Removed
GeminiVideoModelDurationByName.gemini-omni-flash-preview
The deprecated gemini-omni-flash-preview model id is removed. Use the GA id gemini-omni-1.1-flash instead. npmjs.com
And 5 more in this version.
@tanstack/ai-gemini 0.36.0 breaking changes
- Signature changed
GEMINI_NATIVE_IMAGE_MODELS
Was const GEMINI_NATIVE_IMAGE_MODELS: readonly ["gemini-3.1-flash-image", "gemini-3.1-flash-image-preview", "gemini-3.1-flash-lite-image", "gemini-3-pro-image", "gemini-3-pro-image-preview", "gemini-2.5-flash-image"]; now const... npmjs.com - Signature changed
GeminiImageModels
Was const GEMINI_IMAGE_MODELS: readonly ["gemini-3.1-flash-image", "gemini-3.1-flash-lite-image", "gemini-3-pro-image", "gemini-2.5-flash-image", "imagen-4.0-generate-001", "imagen-4.0-fast-generate-001", "imagen-4.0-ultra-generate-001"... npmjs.com
And 2 more in this version.
@tanstack/ai-gemini 0.32.0 breaking changes
- Default changed
GeminiRealtimeModel
The realtime adapter's default model is now gemini-3.8-live. Pass model: 'gemini-3.1-flash-live-preview' to keep the legacy preview model. github.com - Signature changed
GeminiRealtimeModel
Was type GeminiRealtimeModel = 'gemini-3.1-flash-live-preview'; now type GeminiRealtimeModel = 'gemini-3.8-live' | 'gemini-3.8-live-extended-thinking' | 'gemini-3.1-flash-live-preview'. npmjs.com
@tanstack/ai-gemini 0.29.0 breaking changes
- Signature changed
GeminiClientConfig
Was type GeminiClientConfig = GoogleGenAIOptions; now interface GeminiClientConfig extends GoogleGenAIOptions. npmjs.com
@tanstack/ai-gemini 0.28.0 breaking changes
- Signature changed
experimental:createGeminiTextInteractions
Was function createGeminiTextInteractions<TModel extends GeminiModels>(model: TModel, apiKey: string, config?: Omit<GeminiTextInteractionsConfig, 'apiKey'>): GeminiTextInteractionsAdapter<TModel, ResolveProviderOptions... npmjs.com - Signature changed
experimental:geminiTextInteractions
Was function geminiTextInteractions<TModel extends GeminiModels>(model: TModel, config?: Omit<GeminiTextInteractionsConfig, 'apiKey'>): GeminiTextInteractionsAdapter<TModel, ResolveProviderOptions, ResolveInputModalities<TModel>... npmjs.com
And 11 more in this version.
@tanstack/ai-gemini 0.25.0 breaking changes
- Removed
experimental:GeminiTextInteractionsConfig.apiKey
GeminiTextInteractionsConfig.apiKey was removed in @tanstack/ai-gemini 0.25.0 npmjs.com
@tanstack/ai-gemini 0.24.0 breaking changes
- Removed
aspectRatio
Imagen-only options such as aspectRatio and negativePrompt no longer compile on native models; migrate aspectRatio to size or imageConfig and drop the rest. github.com - Removed
gemini-3-pro-image-preview
The -preview native image model ids were shut down and now return 404; switch to the GA ids. github.com
And 15 more in this version.
@tanstack/ai-gemini 0.23.0 breaking changes
- Signature changed
GEMINI_MODELS
Was const GEMINI_MODELS: readonly ["gemini-3.6-flash", "gemini-3.5-flash", "gemini-3.5-flash-lite", "gemini-3.1-pro-preview", "gemini-3-flash-preview", "gemini-3.1-flash-lite", "gemini-3.1-flash-lite-preview", "gemini-2.5-pro"... npmjs.com - Signature changed
GeminiChatModelProviderOptionsByName
Was type GeminiChatModelProviderOptionsByName = {[GEMINI_3_6_FLASH.name]: GeminiToolConfigOptions & GeminiSafetyOptions & GeminiCommonConfigOptions & GeminiCachedContentOptions & GeminiStructuredOutputOptions & GeminiThinkingOptions... npmjs.com
And 3 more in this version.
@tanstack/ai-gemini 0.21.0 breaking changes
- Signature changed
GEMINI_MODELS
Was const GEMINI_MODELS: readonly ["gemini-3.5-flash", "gemini-3.1-pro-preview", "gemini-3-flash-preview", "gemini-3.1-flash-lite", "gemini-3.1-flash-lite-preview", "gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite"]; now const... npmjs.com - Signature changed
GeminiChatModelProviderOptionsByName
Was type GeminiChatModelProviderOptionsByName = {[GEMINI_3_1_PRO.name]: GeminiToolConfigOptions & GeminiSafetyOptions & GeminiCommonConfigOptions & GeminiCachedContentOptions & GeminiStructuredOutputOptions & GeminiThinkingOptions... npmjs.com
And 3 more in this version.
@tanstack/ai-gemini 0.20.0 breaking changes
- Behavior changed
createGeminiImage
URL sources in multimodal image prompts are sent as fileData.fileUri and fetched server-side by Gemini rather than fetched locally and base64-encoded. github.com - Behavior changed
createGeminiVideo
Gemini Veo no longer fetches and buffers HTTP(S) URL image inputs by default; it throws. Use a data: URI, a gs:// reference, or set allowUrlFetch: true. github.com
And 8 more in this version.
@tanstack/ai-gemini 0.19.0 breaking changes
- Removed
GeminiVideoModelDurationByName.veo-2.0-generate-001
The model id veo-2.0-generate-001 returns 404 from the Gemini Developer API and was removed from the adapter. Switch to a current model such as veo-3.1-generate-preview. npmjs.com - Removed
GeminiVideoModelDurationByName.veo-3.0-fast-generate-001
The model id veo-3.0-fast-generate-001 returns 404 from the Gemini Developer API and was removed from the adapter. Switch to a current model such as veo-3.1-lite-generate-preview. npmjs.com
And 5 more in this version.
@tanstack/ai-gemini 0.17.0 breaking changes
- Signature changed
GeminiImageAdapter
Was class GeminiImageAdapter<TModel extends GeminiImageModel> extends BaseImageAdapter<TModel, GeminiImageProviderOptions, GeminiImageModelProviderOptionsByName, GeminiImageModelSizeByName>; now class GeminiImageAdapter<TModel extends... npmjs.com - Signature changed
GeminiImageAdapter.~types
Was '~types': {providerOptions: GeminiImageProviderOptions; modelProviderOptionsByName: GeminiImageModelProviderOptionsByName; modelSizeByName: GeminiImageModelSizeByName;}; now '~types': {providerOptions: GeminiImageProviderOptions... npmjs.com
@tanstack/ai-gemini 0.16.0 breaking changes
- Removed
gemini-2.0-flash
The 2.0 line was retired from Google's published list; switch to gemini-2.5-flash. github.com - Removed
gemini-2.0-flash-lite
The 2.0 line was retired from Google's published list; no successor is named in the notes. github.com
And 28 more in this version.
@tanstack/ai-gemini 0.15.0 breaking changes
- Removed
chat
The root-level temperature, topP and maxTokens options of chat(), ai() and generate() are gone. Pass each provider's native keys under modelOptions instead, or run the codemod to migrate automatically. github.com
@tanstack/ai-gemini 0.14.0 breaking changes
- Behavior changed
When a provider sends no usage object, usage is now undefined instead of zeroed totals. Code that treats a missing usage as zero tokens must handle undefined. github.com - Signature changed
AudioGenerationResult.usage
The usage field is now typed as TokenUsage. Code that reads inputTokens or outputTokens must read promptTokens or completionTokens instead. github.com
And 1 more in this version.
@tanstack/ai-gemini 0.11.0 breaking changes
- Behavior changed
chat
For Gemini 3.x models, chat with outputSchema and tools now sends one combined request instead of a separate finalization call. Middleware that relied on the 'structuredOutput' phase will not see it for these adapters. github.com
@tanstack/ai-gemini 0.10.0 breaking changes
- Signature changed
GeminiTTSModels
Was const GEMINI_TTS_MODELS: readonly ["gemini-2.5-flash-preview-tts", "gemini-2.5-pro-preview-tts"]; now const GEMINI_TTS_MODELS: readonly ["gemini-3.1-flash-tts-preview", "gemini-2.5-flash-preview-tts", "gemini-2.5-pro-preview-tts"]. npmjs.com - Signature changed
GeneratedAudio
Objects that set both url and b64Json, or neither, no longer type-check. Set exactly one of the two fields. github.com
And 1 more in this version.
@tanstack/ai-gemini 0.9.0 breaking changes
- Removed
supports.capabilities
Capability entries describing tools (code_execution, file_search, grounding_with_gmaps renamed to google_maps, search_grounding renamed to google_search, url_context) were moved to the new supports.tools field and removed from the... github.com - Signature changed
createGeminiChat
Was function createGeminiChat<TModel extends (typeof GEMINI_MODELS)[number]>(model: TModel, apiKey: string, config?: Omit<GeminiTextConfig, 'apiKey'>): GeminiTextAdapter<TModel, ResolveProviderOptions<TModel>... npmjs.com
And 2 more in this version.
Related packages
- @tanstack/ai
- @tanstack/ai-client
- @tanstack/ai-react
- @tanstack/ai-anthropic
- @tanstack/ai-ollama
- @tanstack/ai-openai
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.