@ai-sdk/amazon-bedrock 4.0.0-beta.22 → 4.0.0-beta.24
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 +16 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +91 -101
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "@ai-sdk/provider-utils";
|
|
9
9
|
|
|
10
10
|
// src/version.ts
|
|
11
|
-
var VERSION = true ? "4.0.0-beta.
|
|
11
|
+
var VERSION = true ? "4.0.0-beta.24" : "0.0.0-test";
|
|
12
12
|
|
|
13
13
|
// src/bedrock-provider.ts
|
|
14
14
|
import { anthropicTools as anthropicTools2 } from "@ai-sdk/anthropic/internal";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
postJsonToApi,
|
|
23
23
|
resolve
|
|
24
24
|
} from "@ai-sdk/provider-utils";
|
|
25
|
-
import
|
|
25
|
+
import { z as z3 } from "zod/v4";
|
|
26
26
|
|
|
27
27
|
// src/bedrock-api-types.ts
|
|
28
28
|
var BEDROCK_CACHE_POINT = {
|
|
@@ -59,7 +59,7 @@ var BEDROCK_DOCUMENT_MIME_TYPES = {
|
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
// src/bedrock-chat-options.ts
|
|
62
|
-
import
|
|
62
|
+
import { z } from "zod/v4";
|
|
63
63
|
var bedrockFilePartProviderOptions = z.object({
|
|
64
64
|
/**
|
|
65
65
|
* Citation configuration for this document.
|
|
@@ -86,7 +86,7 @@ var bedrockProviderOptions = z.object({
|
|
|
86
86
|
});
|
|
87
87
|
|
|
88
88
|
// src/bedrock-error.ts
|
|
89
|
-
import
|
|
89
|
+
import { z as z2 } from "zod/v4";
|
|
90
90
|
var BedrockErrorSchema = z2.object({
|
|
91
91
|
message: z2.string(),
|
|
92
92
|
type: z2.string().nullish()
|
|
@@ -1327,7 +1327,7 @@ import {
|
|
|
1327
1327
|
} from "@ai-sdk/provider-utils";
|
|
1328
1328
|
|
|
1329
1329
|
// src/bedrock-embedding-options.ts
|
|
1330
|
-
import
|
|
1330
|
+
import { z as z4 } from "zod/v4";
|
|
1331
1331
|
var bedrockEmbeddingProviderOptions = z4.object({
|
|
1332
1332
|
/**
|
|
1333
1333
|
The number of dimensions the resulting output embeddings should have (defaults to 1024).
|
|
@@ -1342,7 +1342,7 @@ var bedrockEmbeddingProviderOptions = z4.object({
|
|
|
1342
1342
|
});
|
|
1343
1343
|
|
|
1344
1344
|
// src/bedrock-embedding-model.ts
|
|
1345
|
-
import
|
|
1345
|
+
import { z as z5 } from "zod/v4";
|
|
1346
1346
|
var BedrockEmbeddingModel = class {
|
|
1347
1347
|
constructor(modelId, config) {
|
|
1348
1348
|
this.modelId = modelId;
|
|
@@ -1424,7 +1424,7 @@ var modelMaxImagesPerCall = {
|
|
|
1424
1424
|
};
|
|
1425
1425
|
|
|
1426
1426
|
// src/bedrock-image-model.ts
|
|
1427
|
-
import
|
|
1427
|
+
import { z as z6 } from "zod/v4";
|
|
1428
1428
|
var BedrockImageModel = class {
|
|
1429
1429
|
constructor(modelId, config) {
|
|
1430
1430
|
this.modelId = modelId;
|