@ai-sdk/amazon-bedrock 5.0.67 → 5.0.68

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.
@@ -35,7 +35,7 @@ var import_provider_utils = require("@ai-sdk/provider-utils");
35
35
  var import_aws4fetch = require("aws4fetch");
36
36
 
37
37
  // src/version.ts
38
- var VERSION = true ? "5.0.67" : "0.0.0-test";
38
+ var VERSION = true ? "5.0.68" : "0.0.0-test";
39
39
 
40
40
  // src/amazon-bedrock-sigv4-fetch.ts
41
41
  function createSigV4FetchFunction(getCredentials, fetch, service = "bedrock") {
@@ -23,7 +23,7 @@ import {
23
23
  import { AwsV4Signer } from "aws4fetch";
24
24
 
25
25
  // src/version.ts
26
- var VERSION = true ? "5.0.67" : "0.0.0-test";
26
+ var VERSION = true ? "5.0.68" : "0.0.0-test";
27
27
 
28
28
  // src/amazon-bedrock-sigv4-fetch.ts
29
29
  function createSigV4FetchFunction(getCredentials, fetch, service = "bedrock") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/amazon-bedrock",
3
- "version": "5.0.67",
3
+ "version": "5.0.68",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -41,10 +41,10 @@
41
41
  }
42
42
  },
43
43
  "dependencies": {
44
- "@ai-sdk/anthropic": "4.0.45",
45
- "@ai-sdk/openai": "4.0.51",
46
- "@ai-sdk/provider": "4.0.8",
47
- "@ai-sdk/provider-utils": "5.0.33",
44
+ "@ai-sdk/anthropic": "4.0.46",
45
+ "@ai-sdk/openai": "4.0.52",
46
+ "@ai-sdk/provider": "4.0.9",
47
+ "@ai-sdk/provider-utils": "5.0.34",
48
48
  "@smithy/eventstream-codec": "^4.3.3",
49
49
  "@smithy/util-utf8": "^4.3.3",
50
50
  "aws4fetch": "^1.0.20"
@@ -216,7 +216,12 @@ export class AmazonBedrockChatLanguageModel implements LanguageModelV4 {
216
216
  });
217
217
  }
218
218
 
219
- const isAnthropicModel = this.modelId.includes('anthropic');
219
+ // Application inference profile ARNs do not expose their underlying model.
220
+ // The Anthropic-only reasoning budget provides the model-family signal.
221
+ const isAnthropicModel =
222
+ this.modelId.includes('anthropic') ||
223
+ (this.modelId.includes(':application-inference-profile/') &&
224
+ amazonBedrockOptions.reasoningConfig?.budgetTokens != null);
220
225
  const openAIModelId = /^(?:[^.]+\.)?(openai\..+)$/.exec(this.modelId)?.[1];
221
226
  const isOpenAIModel = openAIModelId != null;
222
227
  const isOpenAIGptOssModel =