Releases: googleapis/js-genai
Releases · googleapis/js-genai
v2.0.0
2.0.0 (2026-05-07)
⚠ BREAKING CHANGES - Interactions Only
Note: The breaking changes are only in interactions. GenerateContent usage in unaffected.
Refer to https://ai.google.dev/gemini-api/docs/interactions-breaking-changes-may-2026 for details
- Add steps for interactions (c0814c4)
- Deprecate legacy response_format and publish new polymorphic field. (68a6809)
- Rename SSE events to interaction.created and interaction.completed (d1b836b)
Bug Fixes
- timeout not functioning (850f680)
v1.52.0
v1.51.0
1.51.0 (2026-04-29)
Features
- [Interactions] Add FileCitation.{custom_metadata,media_id,page_number} (9e08ba9)
- Add
output_infotoBatchJob(5327c60) - Add gemini-3.1-flash-tts-preview model to options (35c941b)
- Add ImageResizeMode for GenerateVideos (faa1088)
- Add new Gemini Deep Research agent models (6f83a05)
- Add Vertex Dataset input and output options for batch jobs (6aa848e)
- interaction-api: Add grounding tool usage breakdown to Interaction Usage. (e1c31ad)
- introduce enterprise flag and GOOGLE_GENAI_USE_ENTERPRISE env var (cf7ad52)
- Replace the more ambiguous rate field with sample_rate. (6c80464)
v1.50.1
v1.50.0
1.50.0 (2026-04-13)
Caution
CRITICAL WARNING: Do not use this version if you are implementing or relying on webhooks. This release contains known issues regarding webhook sdk. Please use v1.51.0 or later.
Features
- Add "eu" as a supported service location for Vertex AI platform. (2493f9c)
- Add DeepResearchAgentConfig fields (3615ca2)
- Add Live Avatar new fields (6a0ff96)
- Add support for new audio MIME types: opus, alaw, and mulaw (7137f13)
- add webhook and webhookConfig for js and python sdk (0f89605)
- Add webhook_config to batches.create() and models.generate_videos() (894bc93)
- Wire the webhook into python and js client. (b6c5d18)
v1.49.0
v1.48.0
v1.47.0
1.47.0 (2026-03-27)
Features
- Add custom_metadata to FileSearchResult. (083a1e3)
- Add labels field to Veo configs (930c9c3)
- Add mime type for Audio content (1ad80c6)
- Add model_status to GenerateContentResponse (Gemini API only) (5e1110d)
- Add part_metadata in Part (Gemini API only) (5e1110d)
- Add service tier for interactions. (406de38)
- Add service tier to GenerateContent. (0bfe800)
- Add support for more image and audio MIME types in Interactions content (baadbfd)
- Add supported models to the ModelOptions (94642b6)
- genai: add TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO to TurnCoverage (fdacac2)
- support hyperparameters in distillation tuning (716e021)
- Support rendered_parts in GroundingSupport (5e1110d)
Bug Fixes
- support us region routing (d391cff)
v1.46.0
1.46.0 (2026-03-17)
Breaking changes
- [Interactions] Breaking change to Interactions API to refactor TextContent annotations to use specific citation types (9fa8b1d)
- [Interactions] Breaking change for Interactions, rename ContentDelta unions. (917f24f)
- [Interactions] Breaking change to Interactions API to rename rendered_content to search_suggestions (cc6bd38)
Features
- [Interactions] Add and update 'signature' fields for tool call/result content types. (e73ca5b)
- [Interactions] Support Google Maps in Interactions (d0593e3)
- Support include_server_side_tool_invocations for genai. (c627d6f)
Bug Fixes
- Quote
functionResponseskey in LiveClientMessage (9740426)