Skip to content

copilot: support reasoning effort for Gemini BYOK - #328865

Merged
vritant24 merged 3 commits into
mainfrom
copilot/gemini-byok-reasoning-effort
Aug 3, 2026
Merged

copilot: support reasoning effort for Gemini BYOK#328865
vritant24 merged 3 commits into
mainfrom
copilot/gemini-byok-reasoning-effort

Conversation

@vritant24

Copy link
Copy Markdown
Member

Summary

  • expose the Thinking Effort picker for Gemini BYOK models that declare supported reasoning levels
  • forward the selected effort through the Google GenAI thinkingLevel request option
  • update @google/genai to a version that supports thinking levels
  • add focused coverage for model metadata and request mapping

Fixes microsoft/vscode-internalbacklog#8715

Copilot AI review requested due to automatic review settings August 3, 2026 22:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds Gemini BYOK reasoning-effort selection and forwards it through Google GenAI requests.

Changes:

  • Exposes supported Gemini thinking-effort levels.
  • Maps selected effort to thinkingLevel.
  • Updates @google/genai and adds focused coverage.
Show a summary per file
File Description
geminiNativeProvider.ts Advertises and forwards reasoning effort.
geminiNativeProvider.spec.ts Tests schema and request mapping.
package.json Updates Google GenAI dependency.
package-lock.json Locks updated dependency tree.

Review details

Files not reviewed (1)
  • extensions/copilot/package-lock.json: Generated file
  • Files reviewed: 3/4 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Allow model metadata to declare the provider's default reasoning effort so VS Code does not replace Gemini's implicit high default with the generic fallback.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
pwang347
pwang347 previously approved these changes Aug 3, 2026
Keep the SDK at the first version that supports thinking levels and avoid the unapproved install script introduced by newer releases.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@vritant24
vritant24 merged commit 2a6f4bd into main Aug 3, 2026
30 checks passed
@vritant24
vritant24 deleted the copilot/gemini-byok-reasoning-effort branch August 3, 2026 23:51
@vs-code-engineering vs-code-engineering Bot added this to the 1.133.0 milestone Aug 3, 2026
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.

4 participants