@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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ai-sdk/anthropic
2
2
 
3
+ ## 2.0.10
4
+
5
+ ### Patch Changes
6
+
7
+ - c152ef7: feat(providers/anthropic): map 'refusal' stop reason to 'content-filter' finishReason
8
+
3
9
  ## 2.0.9
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -805,6 +805,8 @@ function mapAnthropicStopReason({
805
805
  case "end_turn":
806
806
  case "stop_sequence":
807
807
  return "stop";
808
+ case "refusal":
809
+ return "content-filter";
808
810
  case "tool_use":
809
811
  return isJsonResponseFromTool ? "stop" : "tool-calls";
810
812
  case "max_tokens":