@ai-sdk/anthropic 4.0.3 → 4.0.5

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,18 @@
1
1
  # @ai-sdk/anthropic
2
2
 
3
+ ## 4.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [8c616f0]
8
+ - @ai-sdk/provider-utils@5.0.3
9
+
10
+ ## 4.0.4
11
+
12
+ ### Patch Changes
13
+
14
+ - c18018c: feat (provider/anthropic): add `claude-sonnet-5` model id
15
+
3
16
  ## 4.0.3
4
17
 
5
18
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -183,7 +183,7 @@ interface AnthropicMessageMetadata {
183
183
  } | null;
184
184
  }
185
185
 
186
- type AnthropicModelId = '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' | 'claude-opus-4-7' | 'claude-opus-4-8' | 'claude-fable-5' | (string & {});
186
+ type AnthropicModelId = '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' | 'claude-opus-4-7' | 'claude-opus-4-8' | 'claude-fable-5' | 'claude-sonnet-5' | (string & {});
187
187
  declare const anthropicLanguageModelOptions: z.ZodObject<{
188
188
  sendReasoning: z.ZodOptional<z.ZodBoolean>;
189
189
  structuredOutputMode: z.ZodOptional<z.ZodEnum<{
package/dist/index.js CHANGED
@@ -5387,7 +5387,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
5387
5387
  }
5388
5388
  };
5389
5389
  function getModelCapabilities(modelId) {
5390
- if (modelId.includes("claude-opus-4-8") || modelId.includes("claude-opus-4-7") || modelId.includes("claude-fable-5")) {
5390
+ if (modelId.includes("claude-opus-4-8") || modelId.includes("claude-opus-4-7") || modelId.includes("claude-fable-5") || modelId.includes("claude-sonnet-5")) {
5391
5391
  return {
5392
5392
  maxOutputTokens: 128e3,
5393
5393
  supportsStructuredOutput: true,
@@ -6289,7 +6289,7 @@ var AnthropicSkills = class {
6289
6289
  };
6290
6290
 
6291
6291
  // src/version.ts
6292
- var VERSION = true ? "4.0.3" : "0.0.0-test";
6292
+ var VERSION = true ? "4.0.5" : "0.0.0-test";
6293
6293
 
6294
6294
  // src/anthropic-provider.ts
6295
6295
  function createAnthropic(options = {}) {