@ai-sdk/anthropic 2.0.14 → 2.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ai-sdk/anthropic
2
2
 
3
+ ## 2.0.15
4
+
5
+ ### Patch Changes
6
+
7
+ - c8aab0a: fix (provider/anthropic): revert cd458a8c1667df86e6987a1f2e06159823453864
8
+
3
9
  ## 2.0.14
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -571,14 +571,7 @@ async function convertToAnthropicMessagesPrompt({
571
571
  }
572
572
  }
573
573
  }
574
- const toolResultParts = anthropicContent.filter(
575
- (part) => part.type === "tool_result"
576
- );
577
- const otherParts = anthropicContent.filter(
578
- (part) => part.type !== "tool_result"
579
- );
580
- const reorderedContent = toolResultParts.length > 0 ? [...toolResultParts, ...otherParts] : anthropicContent;
581
- messages.push({ role: "user", content: reorderedContent });
574
+ messages.push({ role: "user", content: anthropicContent });
582
575
  break;
583
576
  }
584
577
  case "assistant": {