js-genai
$
npx @buildinternet/releases get js-genaiMon
Wed
Fri
NovDecJanFebMarAprMayJunJulAugSepOctNov
LessMore
Releases24Avg7/moVersionsv2.18.0 to v3.6.1
npx @buildinternet/releases get js-genaiXHIGH and xhigh to ThinkingLevel across GenAI SDKs and CLI. (9f4d0ed)client.decisions.create) to the GenAI SDKs (3712be2)gemini-omni-1.2-flash and make it the gemini-api video default (cd31e9f)proactive_video to ProactivityConfig for the Live API. (2164fe7)xhigh thinking level to Interactions ThinkingLevel (eff6729)Default Gemini Developer API version is now v1 (was v1beta) (3f477bf)
v1 instead of v1beta.vertexai: true are unaffected by this default change and continue to default to v1beta1.v1, notably: the gemini-flash-latest, gemini-flash-lite-latest and gemini-pro-latest aliases, and some -preview models. They exist only on v1beta. To keep using them, use a specific stable model version, or switch back to v1beta as shown below.caches) are not available on v1. The Gemini Developer API serves them only on v1beta. To keep using them, switch back to v1beta as shown below.GOOGLE_GENAI_API_VERSION (works for both Gemini Developer API and Enterprise / Vertex AI clients when no version is set in code):
# Restores the beta default ('v1beta' on Gemini Developer API, 'v1beta1' on Enterprise / Vertex AI)
export GOOGLE_GENAI_API_VERSION=beta
# Or set an explicit API version string on either platform (e.g. 'v1', 'v1beta', 'v1beta1')
export GOOGLE_GENAI_API_VERSION=v1beta
apiVersion (or httpOptions.apiVersion) to GoogleGenAI (takes precedence over GOOGLE_GENAI_API_VERSION):
import { GoogleGenAI } from '@google/genai';
const ai = new GoogleGenAI({
apiVersion: 'v1beta',
});
Minimum supported Node.js version is now 22 (was 20) (7b9fbf0)
package.json engines.node now requires >=22.0.0.@google/genai@^2 (or ignore engine checks if supported by their environment).interactions: CodeExecutionResultStep.result is now typed as Array<Content> | string (CodeExecutionResultStepResult) instead of string (b36ce99). The JSON and runtime value for text-only results are still a plain string, but TypeScript code reading step.result as a string may need to narrow the union (typeof step.result === 'string').
source_text to AudioTranscriptionConfig and SmartTranscriptionMode. (ddb5158)store to GenerateContentConfig (Gemini Developer API only) and labels to LiveConnectConfig. (0b52aa5)send_context_update) and types across GenAI SDKs. (177ee68)fixes.openSingleValueEnumsOct2026 across all SDKs (0059474)continuation_token to the Interactions interaction.status_update event. (a93776c)"allowlist": "disabled" in environment network config. (18bc392)lyria-3.5, gemini-omni-1.1-flash, and gemini-omni-flash-preview to Interactions Model enum (4ce63d1)CreateAgentInteraction for Trigger.interaction and TriggerCreateParams.interaction (c4341e1)mode enum (VERBATIM, SMART) to AudioTranscriptionConfig and TranscriptionConfig. (4c5208b)language_codes field to AudioTranscriptionConfig. (cc808eb)custom_vocabulary is added to message .google.cloud.aiplatform.v1beta1.BidiGenerateContentSetup (f32ec0a)enable_prompt_injection_detection for Computer Use feature for the Gemini API. (f780f3c)arguments field to the ArgumentDelta type (f76138b)