Commit 16609f7
fix(ai-gemini): remove redundant text part from functionResponse messages (#436)
Tool result messages were emitting both a text part and a functionResponse
part, causing 400 errors on newer Gemini models that reject mixed parts.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e832506 commit 16609f7
3 files changed
Lines changed: 18 additions & 7 deletions
File tree
- .changeset
- packages/typescript/ai-gemini
- src/adapters
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
565 | | - | |
| 565 | + | |
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
| |||
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
397 | | - | |
| 397 | + | |
| 398 | + | |
398 | 399 | | |
399 | 400 | | |
400 | | - | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
401 | 405 | | |
402 | | - | |
| 406 | + | |
| 407 | + | |
403 | 408 | | |
404 | 409 | | |
405 | 410 | | |
| |||
487 | 492 | | |
488 | 493 | | |
489 | 494 | | |
| 495 | + | |
490 | 496 | | |
491 | 497 | | |
492 | 498 | | |
493 | 499 | | |
494 | 500 | | |
495 | | - | |
496 | | - | |
497 | | - | |
| 501 | + | |
| 502 | + | |
498 | 503 | | |
| 504 | + | |
499 | 505 | | |
500 | 506 | | |
501 | 507 | | |
| |||
0 commit comments