Repository navigation
Commit 380beb3
fix: use thinking levels for Gemini 4 small calls
`smallOptions` gave every Google reasoning model except Gemini 3
`thinkingBudget: 0`. Gemini 4 rejects budgets with a 400 ("Thinking budget is
not supported for this model. Use thinking level instead."), so every small
call (session title, prompt enhancement, project copy) failed on it.
- Gemini 2.x and unversioned aliases keep `thinkingBudget: 0`; Gemini 3 keeps
`thinkingLevel: "minimal"`; Gemini 4+ uses the lowest configured supported
level, falling back to `low`.
- Tests cover Google and Vertex for 2.0/2.5/3/3.1/4/5/30 and an unversioned
alias, with and without generated variants.
Closes #1533
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 19f909c commit 380beb3
2 files changed
Lines changed: 55 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1347 | 1347 | | |
1348 | 1348 | | |
1349 | 1349 | | |
1350 | | - | |
| 1350 | + | |
1351 | 1351 | | |
1352 | 1352 | | |
1353 | 1353 | | |
1354 | 1354 | | |
1355 | 1355 | | |
1356 | 1356 | | |
1357 | 1357 | | |
1358 | | - | |
| 1358 | + | |
| 1359 | + | |
1359 | 1360 | | |
1360 | 1361 | | |
1361 | | - | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
1362 | 1370 | | |
1363 | 1371 | | |
1364 | 1372 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
310 | 354 | | |
311 | 355 | | |
312 | 356 | | |
| |||
0 commit comments