Packages

@google/genai

3.6.1 · 18 Nov 2026Apache-2.032.9M / weekRepositoryHomepagenpmAtom feed

Your version

2.29.0

13 Oct 2026Where it was published

2.32.0 is the newest release of 2.x.

In short

8 new8 fixed

Release note

Features

  • Accumulate streaming continuation usage metadata and expose initialPromptTokenCount

  • Add continuation_token to the Interactions interaction.status_update event.

  • Add a CONTINUATION_REQUIRED Interaction status

  • Add billable token counts fields

  • Add startOffset/endOffset to Transcription and interimTranscriptTimestampEnabled to RealtimeInputConfig

  • Add usage in InteractionStatusUpdate events

  • Automatically consume the continuation token

  • cli: update Speakeasy generator to v2.948.0, bump CLI to v0.4.2, and apply CLI overlay fixes

Bug Fixes

  • Clear intermediate CONTINUATION finishReason in streaming continuation

  • Do not record incomplete continuation stream turns in curated chat history

  • gemini-api-cli: remove unsupported 2.5 and 1.6 models from Interactions model options and CLI examples

  • js: do not set initial prompt token count for requests that do not use automatic consumption of continuation token

  • js: fix streaming continuation edge cases (stale token, AbortError, initialPromptTokenCount)

  • Raise default HTTP timeouts so long-running requests aren't killed client-side

  • Resume streaming generation from the latest checkpoint continuation token on mid-stream errors or cutoffs

  • Update EnvironmentConfig.env schema to map keys to EnvVar or string.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.