@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.mjs
CHANGED
|
@@ -778,6 +778,8 @@ function mapAnthropicStopReason({
|
|
|
778
778
|
case "end_turn":
|
|
779
779
|
case "stop_sequence":
|
|
780
780
|
return "stop";
|
|
781
|
+
case "refusal":
|
|
782
|
+
return "content-filter";
|
|
781
783
|
case "tool_use":
|
|
782
784
|
return isJsonResponseFromTool ? "stop" : "tool-calls";
|
|
783
785
|
case "max_tokens":
|
|
@@ -1006,7 +1008,7 @@ var AnthropicMessagesLanguageModel = class {
|
|
|
1006
1008
|
jsonResponseTool != null ? {
|
|
1007
1009
|
tools: [jsonResponseTool],
|
|
1008
1010
|
toolChoice: { type: "tool", toolName: jsonResponseTool.name },
|
|
1009
|
-
disableParallelToolUse:
|
|
1011
|
+
disableParallelToolUse: true
|
|
1010
1012
|
} : {
|
|
1011
1013
|
tools: tools != null ? tools : [],
|
|
1012
1014
|
toolChoice,
|