@ai-sdk/anthropic 4.0.74 → 4.0.76

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,24 @@
1
1
  # @ai-sdk/anthropic
2
2
 
3
+ ## 4.0.76
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [9184a35]
8
+ - @ai-sdk/provider@4.0.25
9
+ - @ai-sdk/provider-utils@5.0.57
10
+
11
+ ## 4.0.75
12
+
13
+ ### Patch Changes
14
+
15
+ - 866e884: feat(anthropic): add Claude Haiku 5.5 support
16
+
17
+ - add the `claude-haiku-5-5` model ID to `@ai-sdk/anthropic` and `@ai-sdk/google-vertex`, `anthropic.claude-haiku-5-5` and `us.anthropic.claude-haiku-5-5` to `@ai-sdk/amazon-bedrock`, and `anthropic/claude-haiku-5.5` to `@ai-sdk/gateway`
18
+ - recognize `claude-haiku-5-5` as a known model with a 128k max output token limit, adaptive thinking, and all five effort levels; thinking can be disabled up to `high` effort, and `xhigh` and `max` are lowered to `high` with a warning when thinking is disabled
19
+ - `claude-haiku-5-5` does not support thinking token budgets: `thinking: { type: 'enabled', budgetTokens }` is converted to adaptive thinking with a warning
20
+ - use the JSON tool fallback for structured output on Amazon Bedrock for `claude-haiku-5-5`
21
+
3
22
  ## 4.0.74
4
23
 
5
24
  ### Patch Changes
package/README.md CHANGED
@@ -35,7 +35,7 @@ import { anthropic } from '@ai-sdk/anthropic';
35
35
  import { generateText } from 'ai';
36
36
 
37
37
  const { text } = await generateText({
38
- model: anthropic('claude-haiku-4-5'),
38
+ model: anthropic('claude-haiku-5-5'),
39
39
  prompt: 'Write a vegetarian lasagna recipe for 4 people.',
40
40
  });
41
41
  ```
package/dist/index.d.ts CHANGED
@@ -220,7 +220,7 @@ interface AnthropicMessageMetadata {
220
220
  }
221
221
  //#endregion
222
222
  //#region src/anthropic-language-model-options.d.ts
223
- 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-opus-5' | 'claude-opus-5-5' | 'claude-fable-5' | 'claude-fable-5-1' | 'claude-sonnet-5' | 'claude-sonnet-5-5' | (string & {});
223
+ type AnthropicModelId = 'claude-3-haiku-20240307' | 'claude-haiku-4-5-20251001' | 'claude-haiku-4-5' | 'claude-haiku-5-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-opus-5' | 'claude-opus-5-5' | 'claude-fable-5' | 'claude-fable-5-1' | 'claude-sonnet-5' | 'claude-sonnet-5-5' | (string & {});
224
224
  /**
225
225
  * Anthropic provider options for system messages.
226
226
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":["SandboxSession","SandboxSession","_$__tool_computer_toolset_202608010.ComputerToolset_20260801Member","DecisionModelV4","BatchV4"],"sources":["../src/anthropic-api.ts","../src/anthropic-message-metadata.ts","../src/anthropic-language-model-options.ts","../src/anthropic-prepare-tools.ts","../src/tool/computer-toolset_20260801.ts","../src/tool/bash_20241022.ts","../src/tool/bash_20250124.ts","../src/anthropic-tools.ts","../src/anthropic-provider.ts","../src/forward-anthropic-container-id-from-last-step.ts","../src/version.ts"],"mappings":";;;;cAmrBM,gCA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;qBCdtC"}
1
+ {"version":3,"file":"index.d.ts","names":["SandboxSession","SandboxSession","_$__tool_computer_toolset_202608010.ComputerToolset_20260801Member","DecisionModelV4","BatchV4"],"sources":["../src/anthropic-api.ts","../src/anthropic-message-metadata.ts","../src/anthropic-language-model-options.ts","../src/anthropic-prepare-tools.ts","../src/tool/computer-toolset_20260801.ts","../src/tool/bash_20241022.ts","../src/tool/bash_20250124.ts","../src/anthropic-tools.ts","../src/anthropic-provider.ts","../src/forward-anthropic-container-id-from-last-step.ts","../src/version.ts"],"mappings":";;;;cAmrBM,gCAA8B,EAAA;;;;;;;;;;GAelC,EAAA,KAAA;KAEU,2BAA2B,EAAE,aAChC;;;;;;;;;;;;;;;;;;KCnrBG;EACV;;;;;;EAOA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;UAGe;EACf,OAAO;EACP;;;;;;;EAQA,uBAAuB;IACrB;IACA;IACA;;;;;;;;;;;;;EAcF,mBAAmB;;;;;;;;;;EAWnB;;;;;IAKE;;;;;IAMA;;;;;IAMA;;;;;;IAOA;;;;;;;;;EAUF,YAAY;;;;;;;EAQZ;;;;IAIE;;;;IAKA;;;;IAKA,QAAQ;;;;MAIN;;;;MAKA;;;;MAKA;;;;;;;;EASJ;;;;;IAKE,cAAc;;;;;;;;;MASR;;;;;MAMA;;;;;MAMA;;;;;;;;;;MAUA;;;;;MAMA;;;;;MAMA;;;;;;;;;;MAUA;;;;;;KC7NE;;;;cAwEC,uCAAqC,EAAA;;;;;;;;;;;;;;;;GA8ChD,EAAA,KAAA;KAEU,wCAAwC,EAAE,aAC7C;cAGI,+BAA6B,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0VxC,EAAA,KAAA;KAEU,gCAAgC,EAAE,aACrC;;;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,mBAAmBA;IAC1C,YAAYA;;EAGd,sBAAsBC;IAAU,MAAM;;;;;EAKtC,mBAAmB;EAEnB,SAAS;;;;EAKT,UAAU;;;;EAKV,cAAc;;UAGC;;EAEf;;IAEE;;;;;;EAOF;;;;;;EAOA;;;;;;EAOA;;;;EAKA,UAAU;;;;;EAMV,QAAQ;EAER;;;;;EAMA;;;;;wBAMc,gBACd,UAAS,4BACR;;;;qBA0HU,WAAS;;;;;;;;;;wBCvPN,0CACd;EAEA,OAAO;IACL,mBAAmB,eAAe;;;EAEpB,kBAAkB,eAAe;;;;qBCdtC"}
package/dist/index.js CHANGED
@@ -3536,7 +3536,7 @@ var AnthropicLanguageModel = class AnthropicLanguageModel {
3536
3536
  }) : null;
3537
3537
  const usedCustomProviderKey = customProviderOptions != null;
3538
3538
  const anthropicOptions = Object.assign({}, canonicalOptions ?? {}, customProviderOptions ?? {});
3539
- const { maxOutputTokens: maxOutputTokensForModel, supportsStructuredOutput: modelSupportsStructuredOutput, supportsAdaptiveThinking, rejectsSamplingParameters, supportsXhighEffort, rejectsThinkingDisabledAboveHighEffort, rejectsThinkingDisabled, rejectsForcedToolUse, supportsBetweenToolsThinking, isKnownModel } = getModelCapabilities(modelId);
3539
+ const { maxOutputTokens: maxOutputTokensForModel, supportsStructuredOutput: modelSupportsStructuredOutput, supportsAdaptiveThinking, rejectsSamplingParameters, supportsXhighEffort, rejectsThinkingDisabledAboveHighEffort, rejectsThinkingDisabled, rejectsBudgetThinking, rejectsForcedToolUse, supportsBetweenToolsThinking, isKnownModel } = getModelCapabilities(modelId);
3540
3540
  if (!isKnownModel && maxOutputTokens == null) warnings.push({
3541
3541
  type: "compatibility",
3542
3542
  feature: "maxOutputTokens",
@@ -3668,15 +3668,16 @@ var AnthropicLanguageModel = class AnthropicLanguageModel {
3668
3668
  details: `thinking cannot be disabled for ${modelId}; it always uses adaptive thinking. The thinking setting has been removed. Lower 'effort' to reduce thinking.`
3669
3669
  });
3670
3670
  anthropicOptions.thinking = void 0;
3671
- } else if (thinking.type === "enabled") {
3672
- warnings.push({
3673
- type: "unsupported",
3674
- feature: "providerOptions.anthropic.thinking",
3675
- details: `budget-based thinking is not supported by ${modelId}; it always uses adaptive thinking. Using adaptive thinking instead. Use 'effort' to control how much the model thinks.`
3676
- });
3677
- anthropicOptions.thinking = { type: "adaptive" };
3678
3671
  }
3679
3672
  }
3673
+ if (rejectsBudgetThinking && anthropicOptions?.thinking?.type === "enabled") {
3674
+ warnings.push({
3675
+ type: "unsupported",
3676
+ feature: "providerOptions.anthropic.thinking",
3677
+ details: rejectsThinkingDisabled ? `budget-based thinking is not supported by ${modelId}; it always uses adaptive thinking. Using adaptive thinking instead. Use 'effort' to control how much the model thinks.` : `budget-based thinking is not supported by ${modelId}. Using adaptive thinking instead. Use 'effort' to control how much the model thinks.`
3678
+ });
3679
+ anthropicOptions.thinking = { type: "adaptive" };
3680
+ }
3680
3681
  if (rejectsThinkingDisabledAboveHighEffort && anthropicOptions?.thinking?.type === "disabled" && (anthropicOptions.effort === "xhigh" || anthropicOptions.effort === "max")) {
3681
3682
  warnings.push({
3682
3683
  type: "unsupported",
@@ -5164,6 +5165,7 @@ function getModelCapabilities(modelId) {
5164
5165
  supportsXhighEffort: true,
5165
5166
  rejectsThinkingDisabledAboveHighEffort: true,
5166
5167
  rejectsThinkingDisabled: true,
5168
+ rejectsBudgetThinking: true,
5167
5169
  rejectsForcedToolUse: true,
5168
5170
  supportsBetweenToolsThinking: true,
5169
5171
  isKnownModel: true
@@ -5176,10 +5178,24 @@ function getModelCapabilities(modelId) {
5176
5178
  supportsXhighEffort: true,
5177
5179
  rejectsThinkingDisabledAboveHighEffort: true,
5178
5180
  rejectsThinkingDisabled: true,
5181
+ rejectsBudgetThinking: true,
5179
5182
  rejectsForcedToolUse: true,
5180
5183
  supportsBetweenToolsThinking: false,
5181
5184
  isKnownModel: true
5182
5185
  };
5186
+ else if (modelId.includes("claude-haiku-5-5")) return {
5187
+ maxOutputTokens: 128e3,
5188
+ supportsStructuredOutput: true,
5189
+ supportsAdaptiveThinking: true,
5190
+ rejectsSamplingParameters: true,
5191
+ supportsXhighEffort: true,
5192
+ rejectsThinkingDisabledAboveHighEffort: true,
5193
+ rejectsThinkingDisabled: false,
5194
+ rejectsBudgetThinking: true,
5195
+ rejectsForcedToolUse: false,
5196
+ supportsBetweenToolsThinking: false,
5197
+ isKnownModel: true
5198
+ };
5183
5199
  else if (modelId.includes("claude-opus-5")) return {
5184
5200
  maxOutputTokens: 128e3,
5185
5201
  supportsStructuredOutput: true,
@@ -5188,6 +5204,7 @@ function getModelCapabilities(modelId) {
5188
5204
  supportsXhighEffort: true,
5189
5205
  rejectsThinkingDisabledAboveHighEffort: true,
5190
5206
  rejectsThinkingDisabled: false,
5207
+ rejectsBudgetThinking: false,
5191
5208
  rejectsForcedToolUse: false,
5192
5209
  supportsBetweenToolsThinking: false,
5193
5210
  isKnownModel: true
@@ -5200,6 +5217,7 @@ function getModelCapabilities(modelId) {
5200
5217
  supportsXhighEffort: true,
5201
5218
  rejectsThinkingDisabledAboveHighEffort: false,
5202
5219
  rejectsThinkingDisabled: true,
5220
+ rejectsBudgetThinking: true,
5203
5221
  rejectsForcedToolUse: true,
5204
5222
  supportsBetweenToolsThinking: false,
5205
5223
  isKnownModel: true
@@ -5212,6 +5230,7 @@ function getModelCapabilities(modelId) {
5212
5230
  supportsXhighEffort: true,
5213
5231
  rejectsThinkingDisabledAboveHighEffort: false,
5214
5232
  rejectsThinkingDisabled: true,
5233
+ rejectsBudgetThinking: true,
5215
5234
  rejectsForcedToolUse: false,
5216
5235
  supportsBetweenToolsThinking: false,
5217
5236
  isKnownModel: true
@@ -5224,6 +5243,7 @@ function getModelCapabilities(modelId) {
5224
5243
  supportsXhighEffort: true,
5225
5244
  rejectsThinkingDisabledAboveHighEffort: false,
5226
5245
  rejectsThinkingDisabled: false,
5246
+ rejectsBudgetThinking: false,
5227
5247
  rejectsForcedToolUse: false,
5228
5248
  supportsBetweenToolsThinking: false,
5229
5249
  isKnownModel: true
@@ -5236,6 +5256,7 @@ function getModelCapabilities(modelId) {
5236
5256
  supportsXhighEffort: false,
5237
5257
  rejectsThinkingDisabledAboveHighEffort: false,
5238
5258
  rejectsThinkingDisabled: false,
5259
+ rejectsBudgetThinking: false,
5239
5260
  rejectsForcedToolUse: false,
5240
5261
  supportsBetweenToolsThinking: false,
5241
5262
  isKnownModel: true
@@ -5248,6 +5269,7 @@ function getModelCapabilities(modelId) {
5248
5269
  supportsXhighEffort: false,
5249
5270
  rejectsThinkingDisabledAboveHighEffort: false,
5250
5271
  rejectsThinkingDisabled: false,
5272
+ rejectsBudgetThinking: false,
5251
5273
  rejectsForcedToolUse: false,
5252
5274
  supportsBetweenToolsThinking: false,
5253
5275
  isKnownModel: true
@@ -5260,6 +5282,7 @@ function getModelCapabilities(modelId) {
5260
5282
  supportsXhighEffort: false,
5261
5283
  rejectsThinkingDisabledAboveHighEffort: false,
5262
5284
  rejectsThinkingDisabled: false,
5285
+ rejectsBudgetThinking: false,
5263
5286
  rejectsForcedToolUse: false,
5264
5287
  supportsBetweenToolsThinking: false,
5265
5288
  isKnownModel: true
@@ -5272,6 +5295,7 @@ function getModelCapabilities(modelId) {
5272
5295
  supportsXhighEffort: false,
5273
5296
  rejectsThinkingDisabledAboveHighEffort: false,
5274
5297
  rejectsThinkingDisabled: false,
5298
+ rejectsBudgetThinking: false,
5275
5299
  rejectsForcedToolUse: false,
5276
5300
  supportsBetweenToolsThinking: false,
5277
5301
  isKnownModel: true
@@ -5284,6 +5308,7 @@ function getModelCapabilities(modelId) {
5284
5308
  supportsXhighEffort: false,
5285
5309
  rejectsThinkingDisabledAboveHighEffort: false,
5286
5310
  rejectsThinkingDisabled: false,
5311
+ rejectsBudgetThinking: false,
5287
5312
  rejectsForcedToolUse: false,
5288
5313
  supportsBetweenToolsThinking: false,
5289
5314
  isKnownModel: true
@@ -5296,6 +5321,7 @@ function getModelCapabilities(modelId) {
5296
5321
  supportsXhighEffort: false,
5297
5322
  rejectsThinkingDisabledAboveHighEffort: false,
5298
5323
  rejectsThinkingDisabled: false,
5324
+ rejectsBudgetThinking: false,
5299
5325
  rejectsForcedToolUse: false,
5300
5326
  supportsBetweenToolsThinking: false,
5301
5327
  isKnownModel: true
@@ -5308,6 +5334,7 @@ function getModelCapabilities(modelId) {
5308
5334
  supportsXhighEffort: false,
5309
5335
  rejectsThinkingDisabledAboveHighEffort: false,
5310
5336
  rejectsThinkingDisabled: false,
5337
+ rejectsBudgetThinking: false,
5311
5338
  rejectsForcedToolUse: false,
5312
5339
  supportsBetweenToolsThinking: false,
5313
5340
  isKnownModel: false
@@ -5320,6 +5347,7 @@ function getModelCapabilities(modelId) {
5320
5347
  supportsXhighEffort: true,
5321
5348
  rejectsThinkingDisabledAboveHighEffort: true,
5322
5349
  rejectsThinkingDisabled: false,
5350
+ rejectsBudgetThinking: false,
5323
5351
  rejectsForcedToolUse: false,
5324
5352
  supportsBetweenToolsThinking: false,
5325
5353
  isKnownModel: false
@@ -5332,6 +5360,7 @@ function getModelCapabilities(modelId) {
5332
5360
  supportsXhighEffort: false,
5333
5361
  rejectsThinkingDisabledAboveHighEffort: false,
5334
5362
  rejectsThinkingDisabled: false,
5363
+ rejectsBudgetThinking: false,
5335
5364
  rejectsForcedToolUse: false,
5336
5365
  supportsBetweenToolsThinking: false,
5337
5366
  isKnownModel: false
@@ -6840,7 +6869,7 @@ var AnthropicSkills = class {
6840
6869
  };
6841
6870
  //#endregion
6842
6871
  //#region src/version.ts
6843
- const VERSION = "4.0.74";
6872
+ const VERSION = "4.0.76";
6844
6873
  //#endregion
6845
6874
  //#region src/anthropic-provider.ts
6846
6875
  const ANTHROPIC_API_URL = "https://api.anthropic.com";