[Feature] Add gemini-3.7-flash with thinking level mapping and update google defaults #1453
Kenmege
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
gemini-3.7-flashwas present in upstream OpenRouter catalogs, but under the directgoogleandgoogle-vertexproviders in Prime Agent, its reasoning/thinking level map was unmapped ({"off": null}), preventing/effort highor high-reasoning level execution from mapping properly to Google GenAI'sHIGHthinking level. In addition, the default model per provider forgoogleandgoogle-vertexwas pointing to older preview models (gemini-3.1-pro-preview).Evidence
thinkingLevel:"MINIMAL","LOW","MEDIUM","HIGH"forgemini-3.7-flash.google/gemini-3.7-flashwith reasoning supported and thinking levels low/medium/high.gemini-3.7-flashforgooglewith reasoning enabled.Proposed change
packages/ai/scripts/generate-models.tsto map thinking levels for Gemini 3.x Flash models (gemini-3.7-flash, etc.) to{"off": null, "minimal": "MINIMAL", "low": "LOW", "medium": "MEDIUM", "high": "HIGH"}.gemini-3.7-flashentries togoogle-vertexprovider and fallback generator registration forgoogle.defaultModelPerProviderforgoogleandgoogle-vertexinpackages/coding-agent/src/core/model-resolver.tstogemini-3.7-flash.packages/ai/test/google-gemini-37-flash.test.ts.Ready branch
Validated on
Kenmege/prime-agentbranchfeat/gemini-3.7-flash(branched from currentmain):npm run checkclean from repo root (biome 949 files,tsgo --noEmit, installer render, browser smoke).packages/ai/test/google-gemini-37-flash.test.tspassed (2/2 tests).npm run buildexecuted cleanly.The branch is push-button ready at https://github.com/Kenmege/prime-agent/tree/feat/gemini-3.7-flash.
All reactions