@ai-sdk/anthropic 3.0.50 → 3.0.51
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 +6 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -8
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +1 -1
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal/index.js +1 -7
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +1 -7
- package/dist/internal/index.mjs.map +1 -1
- package/docs/05-anthropic.mdx +14 -16
- package/package.json +1 -1
- package/src/anthropic-messages-language-model.ts +1 -10
- package/src/anthropic-messages-options.ts +1 -5
package/dist/index.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "@ai-sdk/provider-utils";
|
|
13
13
|
|
|
14
14
|
// src/version.ts
|
|
15
|
-
var VERSION = true ? "3.0.
|
|
15
|
+
var VERSION = true ? "3.0.51" : "0.0.0-test";
|
|
16
16
|
|
|
17
17
|
// src/anthropic-messages-language-model.ts
|
|
18
18
|
import {
|
|
@@ -4145,7 +4145,7 @@ function getModelCapabilities(modelId) {
|
|
|
4145
4145
|
supportsStructuredOutput: true,
|
|
4146
4146
|
isKnownModel: true
|
|
4147
4147
|
};
|
|
4148
|
-
} else if (modelId.includes("claude-sonnet-4-")
|
|
4148
|
+
} else if (modelId.includes("claude-sonnet-4-")) {
|
|
4149
4149
|
return {
|
|
4150
4150
|
maxOutputTokens: 64e3,
|
|
4151
4151
|
supportsStructuredOutput: false,
|
|
@@ -4157,12 +4157,6 @@ function getModelCapabilities(modelId) {
|
|
|
4157
4157
|
supportsStructuredOutput: false,
|
|
4158
4158
|
isKnownModel: true
|
|
4159
4159
|
};
|
|
4160
|
-
} else if (modelId.includes("claude-3-5-haiku")) {
|
|
4161
|
-
return {
|
|
4162
|
-
maxOutputTokens: 8192,
|
|
4163
|
-
supportsStructuredOutput: false,
|
|
4164
|
-
isKnownModel: true
|
|
4165
|
-
};
|
|
4166
4160
|
} else if (modelId.includes("claude-3-haiku")) {
|
|
4167
4161
|
return {
|
|
4168
4162
|
maxOutputTokens: 4096,
|