@ai-sdk/anthropic 2.0.72 → 2.0.73
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 +8 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +2 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +2 -2
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @ai-sdk/anthropic
|
|
2
2
|
|
|
3
|
+
## 2.0.73
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 42bc840: fix(anthropic): move claude-haiku-4-5 to the 4-5 model group in getModelCapabilities
|
|
8
|
+
|
|
9
|
+
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.
|
|
10
|
+
|
|
3
11
|
## 2.0.72
|
|
4
12
|
|
|
5
13
|
### 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.
|
|
34
|
+
var VERSION = true ? "2.0.73" : "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")
|
|
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,
|