Skip to content

fix(provider): reasoning-budget, gemini-3, interleaved-merge & catalog-refresh correctness#120

Merged
Aayam Bansal (aayambansal) merged 1 commit into
mainfrom
fix/reasoning-capability-correctness
Jul 7, 2026
Merged

fix(provider): reasoning-budget, gemini-3, interleaved-merge & catalog-refresh correctness#120
Aayam Bansal (aayambansal) merged 1 commit into
mainfrom
fix/reasoning-capability-correctness

Conversation

@aayambansal

Copy link
Copy Markdown
Member

Four provider/transform correctness fixes from the audit:

Tests

New coverage in transform-reasoning.test.ts (max budget leaves ≥4k text on a 32k model; large caps clamp at 31,999; gemini-3 nests under thinkingConfig). Updated the existing gemini variant test to the corrected shape. All 196 provider tests green.

…g-refresh correctness

Four provider/transform correctness fixes from the backend audit:

- max reasoning variant no longer starves text to 1 token. On a 32k-output
  Claude, the max thinking budget of cap-1 (31,999) left maxOutputTokens
  returning a single text token; keep it proportional (~3/4 of cap). Large
  caps still clamp at 31,999. (#17)
- Gemini-3 effort variants are nested under thinkingConfig. @ai-sdk/google
  only reads providerOptions.google.thinkingConfig.*, so the old top-level
  keys were dropped and effort selection was silently ignored (always high). (#24)
- Config-model merge falls back to the catalog model's interleaved shape like
  every other capability, so overriding one field (e.g. cost) no longer drops
  the interleaved-reasoning relocation. (#29)
- ModelsDev.refresh() now invalidates provider state so a long-running session
  picks up the hourly-refreshed catalog instead of the first snapshot. (#25)
@vercel

vercel Bot commented Jul 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openscience Ready Ready Preview, Comment Jul 7, 2026 3:22am

Request Review

@aayambansal Aayam Bansal (aayambansal) merged commit 8a35ceb into main Jul 7, 2026
11 checks passed
@aayambansal Aayam Bansal (aayambansal) deleted the fix/reasoning-capability-correctness branch July 7, 2026 03:24
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