@ai-sdk/anthropic 2.0.8 → 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":
@@ -1030,7 +1032,7 @@ var AnthropicMessagesLanguageModel = class {
1030
1032
  jsonResponseTool != null ? {
1031
1033
  tools: [jsonResponseTool],
1032
1034
  toolChoice: { type: "tool", toolName: jsonResponseTool.name },
1033
- disableParallelToolUse: anthropicOptions == null ? void 0 : anthropicOptions.disableParallelToolUse
1035
+ disableParallelToolUse: true
1034
1036
  } : {
1035
1037
  tools: tools != null ? tools : [],
1036
1038
  toolChoice,