Repository navigation
Commit 1ec6b15
fix: use thinking levels for Gemini 4 small calls (AltimateAI#1534)
* 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 AltimateAI#1533
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* fix: keep the substring rule for Gemini 3 ids without a parseable generation
Ids such as `vertex_gemini-3pro` matched the earlier `includes("gemini-3")`
check but not the generation regex, so they fell back to `thinkingBudget: 0`.
Adds prefixed, dated-preview and unparseable id cases.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* fix: parse the Gemini generation from any `gemini-<N>` id form
Prefixed or concatenated ids such as `vertex_gemini-4argon` did not match the
anchored pattern, so they fell back to `thinkingBudget: 0` and the 400. One
unanchored `gemini-(\d+)` parse now covers Gemini 3 and Gemini 4+ alike, which
also replaces the substring fallback.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>1 parent 05cc4d1 commit 1ec6b15
2 files changed
Lines changed: 61 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 | + | |
| 1360 | + | |
1359 | 1361 | | |
1360 | 1362 | | |
1361 | | - | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
1362 | 1371 | | |
1363 | 1372 | | |
1364 | 1373 | | |
| |||
| 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 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
310 | 359 | | |
311 | 360 | | |
312 | 361 | | |
| |||
0 commit comments