@google/genai
3.6.1 · 18 Nov 2026Apache-2.032.9M / weekRepositoryHomepagenpmAtom feed
Upgrading @google/genai From 2.27.0 to 3.6.1
14 releases in betweenevery note read
Reading releases, release notes and advisories…
- 4
- changes to make
- 0
- advisories fixed
- 46
- new
- 24
- fixes
Before you upgrade
Tick each one off as you go- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
Release by release
- Fixed
Update sdk enum
- Fixed
- New
sdk: Add tool retrieval and function result schemas in public SDK
- New
- New
environments: introduce self-hosted BYOS mode, system_instruction, custom_config, and environment_key in SDKs and CLI
- New
Generate Live Interactions types and auth-token client in the public SDKs.
- New
interactions: add experimental Live Interactions (WebSocket and WebRTC) SDK support
- Fixed
- New
- New
Add tool search types to the Interactions SDKs
- New
interactions: expose static file processing options
- New
Support batch inputs and usage metadata for Gemini embedding models on Gemini Enterprise API
- Fixed
Keep the SDK version bump in release imports
- New
- New
Add
XHIGHandxhightoThinkingLevelacross GenAI SDKs and CLI. - New
Add missing enum values to FinishReason and ReinforcementTuningThinkingLevel
- New
interactions: add gemini-4-hydrogen to Model enum
- New
- New
Add the Decisions API (
client.decisions.create) to the GenAI SDKs
- New
- New
Add
gemini-omni-1.2-flashand make it thegemini-api videodefault - New
Add
proactive_videotoProactivityConfigfor the Live API. - New
Add
xhighthinking level to Interactions ThinkingLevel - New
Add usage_metadata (including traffic_type) and truncated to EmbedContentResponse for Gemini Enterprise API
- New
interactions: add gemini-4-carbon and gemini-omni-1.2-flash to Model enum
- New
- Breaking
Default Gemini Developer API version is now
v1(wasv1beta) - Breaking
Minimum supported Node.js version is now 22 (was 20)
- Breaking
interactions:
CodeExecutionResultStep.resultis now typed asArray<Content> | string(CodeExecutionResultStepResult) instead ofstring(b36ce99). The JSON and runtime value for text-only results are still a plainstring, but TypeScript code readingstep.resultas astringmay need to narrow the union (typeof step.result === 'string'). - Breaking
Drop support for Node 20; Node.js >=22 is now required
- Breaking
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.