Commit 281eee1
SidQin-cyber
fix(agents): extend Gemini 3.1 forward-compat to google provider
The forward-compat path for gemini-3.1-pro-preview and
gemini-3.1-flash-lite-preview only covered the google-gemini-cli
provider. Users configuring these models with the google provider
(Gemini API key auth) got "Unknown model" errors and silently fell
back to Anthropic.
Extend resolveGoogleGemini31ForwardCompatModel to accept both
google-gemini-cli and google providers by using a provider set.
Also add bare-ID normalization for gemini-3.1-pro, gemini-3.1-flash,
and gemini-3.1-flash-lite in normalizeGoogleModelId().
Closes #36134
Closes #361111 parent 06ff25c commit 281eee1
File tree
2 files changed
+19
-6
lines changed- src/agents
2 files changed
+19
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| 171 | + | |
| 172 | + | |
171 | 173 | | |
172 | | - | |
173 | | - | |
174 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
175 | 178 | | |
176 | 179 | | |
177 | 180 | | |
178 | 181 | | |
179 | | - | |
| 182 | + | |
| 183 | + | |
180 | 184 | | |
181 | 185 | | |
182 | 186 | | |
| |||
192 | 196 | | |
193 | 197 | | |
194 | 198 | | |
195 | | - | |
| 199 | + | |
196 | 200 | | |
197 | 201 | | |
198 | 202 | | |
| |||
252 | 256 | | |
253 | 257 | | |
254 | 258 | | |
255 | | - | |
| 259 | + | |
256 | 260 | | |
257 | 261 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
447 | 456 | | |
448 | 457 | | |
449 | 458 | | |
| |||
0 commit comments