@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.
package/dist/index.mjs CHANGED
@@ -788,6 +788,8 @@ function mapAnthropicStopReason({
788
788
  case "end_turn":
789
789
  case "stop_sequence":
790
790
  return "stop";
791
+ case "refusal":
792
+ return "content-filter";
791
793
  case "tool_use":
792
794
  return isJsonResponseFromTool ? "stop" : "tool-calls";
793
795
  case "max_tokens":
@@ -1016,7 +1018,7 @@ var AnthropicMessagesLanguageModel = class {
1016
1018
  jsonResponseTool != null ? {
1017
1019
  tools: [jsonResponseTool],
1018
1020
  toolChoice: { type: "tool", toolName: jsonResponseTool.name },
1019
- disableParallelToolUse: anthropicOptions == null ? void 0 : anthropicOptions.disableParallelToolUse
1021
+ disableParallelToolUse: true
1020
1022
  } : {
1021
1023
  tools: tools != null ? tools : [],
1022
1024
  toolChoice,