@ai-sdk/anthropic 2.0.9 → 2.0.10

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.
@@ -802,6 +802,8 @@ function mapAnthropicStopReason({
802
802
  case "end_turn":
803
803
  case "stop_sequence":
804
804
  return "stop";
805
+ case "refusal":
806
+ return "content-filter";
805
807
  case "tool_use":
806
808
  return isJsonResponseFromTool ? "stop" : "tool-calls";
807
809
  case "max_tokens":