@ai-sdk/anthropic 2.0.72 → 2.0.74

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,20 @@
1
1
  # @ai-sdk/anthropic
2
2
 
3
+ ## 2.0.74
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [a27a978]
8
+ - @ai-sdk/provider-utils@3.0.23
9
+
10
+ ## 2.0.73
11
+
12
+ ### Patch Changes
13
+
14
+ - 42bc840: fix(anthropic): move claude-haiku-4-5 to the 4-5 model group in getModelCapabilities
15
+
16
+ Moves `claude-haiku-4-5` from the `claude-sonnet-4-`/`claude-3-7-sonnet` group (structured output: false) to the `claude-sonnet-4-5`/`claude-opus-4-5` group (structured output: true), aligning with main and release-v6.0.
17
+
3
18
  ## 2.0.72
4
19
 
5
20
  ### Patch Changes
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ var import_provider4 = require("@ai-sdk/provider");
31
31
  var import_provider_utils21 = require("@ai-sdk/provider-utils");
32
32
 
33
33
  // src/version.ts
34
- var VERSION = true ? "2.0.72" : "0.0.0-test";
34
+ var VERSION = true ? "2.0.74" : "0.0.0-test";
35
35
 
36
36
  // src/anthropic-messages-language-model.ts
37
37
  var import_provider3 = require("@ai-sdk/provider");
@@ -3223,7 +3223,7 @@ function getModelCapabilities(modelId) {
3223
3223
  supportsStructuredOutput: true,
3224
3224
  isKnownModel: true
3225
3225
  };
3226
- } else if (modelId.includes("claude-sonnet-4-5") || modelId.includes("claude-opus-4-5")) {
3226
+ } else if (modelId.includes("claude-sonnet-4-5") || modelId.includes("claude-opus-4-5") || modelId.includes("claude-haiku-4-5")) {
3227
3227
  return {
3228
3228
  maxOutputTokens: 64e3,
3229
3229
  supportsStructuredOutput: true,
@@ -3235,7 +3235,7 @@ function getModelCapabilities(modelId) {
3235
3235
  supportsStructuredOutput: true,
3236
3236
  isKnownModel: true
3237
3237
  };
3238
- } else if (modelId.includes("claude-sonnet-4-") || modelId.includes("claude-3-7-sonnet") || modelId.includes("claude-haiku-4-5")) {
3238
+ } else if (modelId.includes("claude-sonnet-4-") || modelId.includes("claude-3-7-sonnet")) {
3239
3239
  return {
3240
3240
  maxOutputTokens: 64e3,
3241
3241
  supportsStructuredOutput: false,