@ai-sdk/anthropic 2.0.9 → 2.0.11

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.
@@ -775,9 +775,12 @@ function mapAnthropicStopReason({
775
775
  isJsonResponseFromTool
776
776
  }) {
777
777
  switch (finishReason) {
778
+ case "pause_turn":
778
779
  case "end_turn":
779
780
  case "stop_sequence":
780
781
  return "stop";
782
+ case "refusal":
783
+ return "content-filter";
781
784
  case "tool_use":
782
785
  return isJsonResponseFromTool ? "stop" : "tool-calls";
783
786
  case "max_tokens":