Skip to content

chore(core): upgrade @google/genai to 3.3 - #597

Merged
anurag629 merged 3 commits into
devfrom
chore/genai-3
Nov 18, 2026
Merged

anurag629 merged 3 commits into
devfrom
chore/genai-3

Conversation

@anurag629

@anurag629 anurag629 commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Dependabot's #592, and now #621 for 3.3, can't go in as they are. Their update job only changes packages/core/package.json, so the lockfile keeps 2.30.0 and CI stops at install. This does the upgrade by hand, to 3.3.

What 3.0 changes for us:

  • The Gemini Developer API default moved from v1beta to v1, and the -latest model aliases (gemini-flash-latest and the others) don't exist on v1. GeminiProvider now passes apiVersion: 'v1beta' (packages/core/src/providers/gemini.ts:183), so requests go to the same endpoint as on 2.x. Moving to v1 can be its own change after a live check.
  • Node 22 is the minimum. core already needs >=22, so nothing changes for users.
  • CodeExecutionResultStep.result changed type, but that's in the Interactions API, which core doesn't use.

3.1 to 3.3 only add features. The range is ^3.3.0 and the lockfile has 3.3.0. 3.4 and 3.5 (out today) add features too, mostly to the Interactions API.

How I tested this

  • tests/providers/custom-fetch.test.ts now checks that the request goes to /v1beta/models/...:streamGenerateContent. With 3.2 and no apiVersion it failed, since the URL was /v1/models/gemini-3.5-flash-lite:streamGenerateContent.
  • gemini-step.test.ts replays the recorded Gemini responses and checks each request body against the recorded one, so 3.3 sends the same requests 2.30 did.
  • With current dev merged in: pnpm -r build, pnpm -r typecheck, pnpm test (2562 passed), pnpm lint (no errors) and pnpm api:check.

The live check against Gemini (a plain reply, a tool call with its thought signature, and usage) is part of the provider smoke test before the next release.

@anurag629 anurag629 changed the title chore(core): upgrade @google/genai to 3.2 chore(core): upgrade @google/genai to 3.3 Nov 18, 2026
@anurag629
anurag629 merged commit efe0064 into dev Nov 18, 2026
7 checks passed
@anurag629
anurag629 deleted the chore/genai-3 branch November 18, 2026 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant