@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/CHANGELOG.md +12 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +3 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +3 -1
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/internal/index.js
CHANGED
|
@@ -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:
|
|
1035
|
+
disableParallelToolUse: true
|
|
1034
1036
|
} : {
|
|
1035
1037
|
tools: tools != null ? tools : [],
|
|
1036
1038
|
toolChoice,
|