Repository navigation
Commit b3f4ff1
Add current-generation Gemini models to AIModel and deprecate the 2.x members (#366)
Google has withdrawn most of the Gemini 2.x generation. A `hint` naming one of
those models made `ai.prompt()` fail outright, and the speed/cost tiers that
resolve without a hint pointed at several of them too, so `{ speed: "capable",
cost: "high" }` and neighbouring tiers stopped working.
Adds `GEMINI_31_PRO`, `GEMINI_35_FLASH`, and `GEMINI_35_FLASH_LITE`, and marks
the `GEMINI_25_*` and `GEMINI_20_*` members deprecated. The deprecated members
are kept so twists built against an earlier SDK version still compile, and a
hint naming a withdrawn model is now served by its current equivalent instead
of erroring.
`GEMINI_25_FLASH` is deprecated but not remapped: it still works, and silently
substituting a model an author deliberately asked for would be worse than
letting it run until it is actually withdrawn.
Claude-Session: https://claude.ai/code/session_01Y9GNwKEBkEAoLYzkTngfGk
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>1 parent f500e07 commit b3f4ff1
2 files changed
Lines changed: 34 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
260 | 271 | | |
| 272 | + | |
261 | 273 | | |
| 274 | + | |
262 | 275 | | |
| 276 | + | |
263 | 277 | | |
| 278 | + | |
264 | 279 | | |
265 | 280 | | |
266 | 281 | | |
| |||
0 commit comments