@ai-sdk/amazon-bedrock 4.0.115 → 4.0.117
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 +20 -0
- package/dist/anthropic/index.js +1 -1
- package/dist/anthropic/index.mjs +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/mantle/index.js +1 -1
- package/dist/mantle/index.mjs +1 -1
- package/package.json +4 -4
- package/src/bedrock-embedding-model.ts +3 -1
package/dist/index.mjs
CHANGED
|
@@ -1719,7 +1719,7 @@ var BedrockEmbeddingModel = class {
|
|
|
1719
1719
|
schema: amazonBedrockEmbeddingModelOptionsSchema
|
|
1720
1720
|
})) != null ? _a : {};
|
|
1721
1721
|
const isNovaModel = this.modelId.startsWith("amazon.nova-") && this.modelId.includes("embed");
|
|
1722
|
-
const isCohereModel = this.modelId.
|
|
1722
|
+
const isCohereModel = this.modelId.includes("cohere.embed-");
|
|
1723
1723
|
const args = isNovaModel ? {
|
|
1724
1724
|
taskType: "SINGLE_EMBEDDING",
|
|
1725
1725
|
singleEmbeddingParams: {
|
|
@@ -2035,7 +2035,7 @@ import {
|
|
|
2035
2035
|
import { AwsV4Signer } from "aws4fetch";
|
|
2036
2036
|
|
|
2037
2037
|
// src/version.ts
|
|
2038
|
-
var VERSION = true ? "4.0.
|
|
2038
|
+
var VERSION = true ? "4.0.117" : "0.0.0-test";
|
|
2039
2039
|
|
|
2040
2040
|
// src/bedrock-sigv4-fetch.ts
|
|
2041
2041
|
function createSigV4FetchFunction(getCredentials, fetch, service = "bedrock") {
|