@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
|
@@ -2,7 +2,7 @@ import { LanguageModelV3, LanguageModelV3CallOptions, LanguageModelV3GenerateRes
|
|
|
2
2
|
import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
|
|
3
3
|
import { Resolvable, FetchFunction } from '@ai-sdk/provider-utils';
|
|
4
4
|
|
|
5
|
-
type AnthropicMessagesModelId = 'claude-3-
|
|
5
|
+
type AnthropicMessagesModelId = 'claude-3-haiku-20240307' | 'claude-haiku-4-5-20251001' | 'claude-haiku-4-5' | 'claude-opus-4-0' | 'claude-opus-4-20250514' | 'claude-opus-4-1-20250805' | 'claude-opus-4-1' | 'claude-opus-4-5' | 'claude-opus-4-5-20251101' | 'claude-sonnet-4-0' | 'claude-sonnet-4-20250514' | 'claude-sonnet-4-5-20250929' | 'claude-sonnet-4-5' | 'claude-sonnet-4-6' | 'claude-opus-4-6' | (string & {});
|
|
6
6
|
|
|
7
7
|
type AnthropicMessagesConfig = {
|
|
8
8
|
provider: string;
|
package/dist/internal/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { LanguageModelV3, LanguageModelV3CallOptions, LanguageModelV3GenerateRes
|
|
|
2
2
|
import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
|
|
3
3
|
import { Resolvable, FetchFunction } from '@ai-sdk/provider-utils';
|
|
4
4
|
|
|
5
|
-
type AnthropicMessagesModelId = 'claude-3-
|
|
5
|
+
type AnthropicMessagesModelId = 'claude-3-haiku-20240307' | 'claude-haiku-4-5-20251001' | 'claude-haiku-4-5' | 'claude-opus-4-0' | 'claude-opus-4-20250514' | 'claude-opus-4-1-20250805' | 'claude-opus-4-1' | 'claude-opus-4-5' | 'claude-opus-4-5-20251101' | 'claude-sonnet-4-0' | 'claude-sonnet-4-20250514' | 'claude-sonnet-4-5-20250929' | 'claude-sonnet-4-5' | 'claude-sonnet-4-6' | 'claude-opus-4-6' | (string & {});
|
|
6
6
|
|
|
7
7
|
type AnthropicMessagesConfig = {
|
|
8
8
|
provider: string;
|
package/dist/internal/index.js
CHANGED
|
@@ -4113,7 +4113,7 @@ function getModelCapabilities(modelId) {
|
|
|
4113
4113
|
supportsStructuredOutput: true,
|
|
4114
4114
|
isKnownModel: true
|
|
4115
4115
|
};
|
|
4116
|
-
} else if (modelId.includes("claude-sonnet-4-")
|
|
4116
|
+
} else if (modelId.includes("claude-sonnet-4-")) {
|
|
4117
4117
|
return {
|
|
4118
4118
|
maxOutputTokens: 64e3,
|
|
4119
4119
|
supportsStructuredOutput: false,
|
|
@@ -4125,12 +4125,6 @@ function getModelCapabilities(modelId) {
|
|
|
4125
4125
|
supportsStructuredOutput: false,
|
|
4126
4126
|
isKnownModel: true
|
|
4127
4127
|
};
|
|
4128
|
-
} else if (modelId.includes("claude-3-5-haiku")) {
|
|
4129
|
-
return {
|
|
4130
|
-
maxOutputTokens: 8192,
|
|
4131
|
-
supportsStructuredOutput: false,
|
|
4132
|
-
isKnownModel: true
|
|
4133
|
-
};
|
|
4134
4128
|
} else if (modelId.includes("claude-3-haiku")) {
|
|
4135
4129
|
return {
|
|
4136
4130
|
maxOutputTokens: 4096,
|