Skip to content

Conversation

@hannesrudolph
Copy link
Collaborator

@hannesrudolph hannesrudolph commented Dec 24, 2025

The previous SDK version (1.29.1) did not include the thinkingLevel property
in ThinkingConfig, causing INVALID_ARGUMENT errors when using Gemini 3 Pro
and Flash models which require effort-based reasoning configuration via
thinkingLevel.

Changes:

  • Update @google/genai from ^1.29.1 to ^1.30.0 (adds thinkingLevel support)
  • Import ThinkingLevel enum and map lowercase effort values to SDK enum values
  • Update GeminiReasoningParams type to use SDK's ThinkingConfig directly
  • Update tests to expect uppercase ThinkingLevel enum values

Important

Upgrade @google/genai to 1.30.0 to support thinkingLevel for Gemini 3 models, updating logic and tests accordingly.

  • Dependencies:
    • Update @google/genai from ^1.29.1 to ^1.30.0 in package.json to support thinkingLevel.
  • Reasoning Logic:
    • Import ThinkingLevel enum and map lowercase effort values to SDK enum values in reasoning.ts.
    • Update GeminiReasoningParams type to use SDK's ThinkingConfig directly in reasoning.ts.
  • Tests:
    • Update tests in reasoning.spec.ts to expect uppercase ThinkingLevel enum values.

This description was created by Ellipsis for 41c99fa. You can customize this summary. It will automatically update as commits are pushed.

…i 3 models

The previous SDK version (1.29.1) did not include the `thinkingLevel` property
in `ThinkingConfig`, causing INVALID_ARGUMENT errors when using Gemini 3 Pro
and Flash models which require effort-based reasoning configuration via
`thinkingLevel`.

Changes:
- Update @google/genai from ^1.29.1 to ^1.30.0 (adds thinkingLevel support)
- Import ThinkingLevel enum and map lowercase effort values to SDK enum values
- Update GeminiReasoningParams type to use SDK's ThinkingConfig directly
- Update tests to expect uppercase ThinkingLevel enum values
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. bug Something isn't working labels Dec 24, 2025
@roomote
Copy link
Contributor

roomote bot commented Dec 24, 2025

Oroocle Clock   See task on Roo Cloud

Review completed. One issue flagged for follow-up.

  • Align @google/genai version intent with pnpm lock resolution (1.34.0 vs described 1.30.0), and consider peer dep @modelcontextprotocol/sdk mismatch

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

'@google/genai':
specifier: ^1.29.1
version: 1.29.1(@modelcontextprotocol/sdk@1.12.0)
specifier: ^1.30.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lockfile resolves @google/genai to 1.34.0 (because src/package.json uses ^1.30.0). If the intent is to only take the minimal bump described in the PR/changeset (1.30.x), consider pinning (for example ~1.30.0) or updating the PR/changeset text to match that we are taking latest 1.x. Note 1.34.0 also declares a peer dependency on @modelcontextprotocol/sdk ^1.24.0 (optional), while this repo pins 1.12.0.

Fix it with Roo Code or mention @roomote and request a fix.

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Dec 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. size:M This PR changes 30-99 lines, ignoring generated files.

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

3 participants