Commit ae20309
committed
fix: preserve reasoning metadata across model switches
The differentModel guard strips providerMetadata from all parts when the
current model differs from the stored message model. For reasoning parts
this removes thinking block signatures, causing Anthropic to reject the
history. Reasoning parts now always preserve their metadata since it is
provider-scoped and harmless to other providers.1 parent f954854 commit ae20309
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
795 | 795 | | |
796 | 796 | | |
797 | 797 | | |
798 | | - | |
| 798 | + | |
799 | 799 | | |
800 | 800 | | |
801 | 801 | | |
| |||
0 commit comments