@ai-sdk/amazon-bedrock 4.0.115 → 4.0.116

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,15 @@
1
1
  # @ai-sdk/amazon-bedrock
2
2
 
3
+ ## 4.0.116
4
+
5
+ ### Patch Changes
6
+
7
+ - f0b5c16: fix(provider/amazon-bedrock): detect Cohere embedding models behind cross-region inference profile ids
8
+ - Updated dependencies [942f2f8]
9
+ - @ai-sdk/provider-utils@4.0.28
10
+ - @ai-sdk/anthropic@3.0.83
11
+ - @ai-sdk/openai@3.0.70
12
+
3
13
  ## 4.0.115
4
14
 
5
15
  ### Patch Changes
@@ -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 ? "4.0.115" : "0.0.0-test";
38
+ var VERSION = true ? "4.0.116" : "0.0.0-test";
39
39
 
40
40
  // src/bedrock-sigv4-fetch.ts
41
41
  function createSigV4FetchFunction(getCredentials, fetch, service = "bedrock") {
@@ -24,7 +24,7 @@ import {
24
24
  import { AwsV4Signer } from "aws4fetch";
25
25
 
26
26
  // src/version.ts
27
- var VERSION = true ? "4.0.115" : "0.0.0-test";
27
+ var VERSION = true ? "4.0.116" : "0.0.0-test";
28
28
 
29
29
  // src/bedrock-sigv4-fetch.ts
30
30
  function createSigV4FetchFunction(getCredentials, fetch, service = "bedrock") {
package/dist/index.js CHANGED
@@ -1710,7 +1710,7 @@ var BedrockEmbeddingModel = class {
1710
1710
  schema: amazonBedrockEmbeddingModelOptionsSchema
1711
1711
  })) != null ? _a : {};
1712
1712
  const isNovaModel = this.modelId.startsWith("amazon.nova-") && this.modelId.includes("embed");
1713
- const isCohereModel = this.modelId.startsWith("cohere.embed-");
1713
+ const isCohereModel = this.modelId.includes("cohere.embed-");
1714
1714
  const args = isNovaModel ? {
1715
1715
  taskType: "SINGLE_EMBEDDING",
1716
1716
  singleEmbeddingParams: {
@@ -2014,7 +2014,7 @@ var import_provider_utils7 = require("@ai-sdk/provider-utils");
2014
2014
  var import_aws4fetch = require("aws4fetch");
2015
2015
 
2016
2016
  // src/version.ts
2017
- var VERSION = true ? "4.0.115" : "0.0.0-test";
2017
+ var VERSION = true ? "4.0.116" : "0.0.0-test";
2018
2018
 
2019
2019
  // src/bedrock-sigv4-fetch.ts
2020
2020
  function createSigV4FetchFunction(getCredentials, fetch, service = "bedrock") {