@ai-sdk/amazon-bedrock 4.0.0-beta.17 → 4.0.0-beta.19

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/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.17" : "0.0.0-test";
11
+ var VERSION = true ? "4.0.0-beta.19" : "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 { z as z3 } from "zod/v4";
25
+ import * 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 { z } from "zod/v4";
62
+ import * as 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 { z as z2 } from "zod/v4";
89
+ import * as z2 from "zod/v4";
90
90
  var BedrockErrorSchema = z2.object({
91
91
  message: z2.string(),
92
92
  type: z2.string().nullish()
@@ -176,7 +176,7 @@ import {
176
176
  anthropicTools,
177
177
  prepareTools as prepareAnthropicTools
178
178
  } from "@ai-sdk/anthropic/internal";
179
- function prepareTools({
179
+ async function prepareTools({
180
180
  tools,
181
181
  toolChoice,
182
182
  modelId
@@ -230,7 +230,7 @@ function prepareTools({
230
230
  toolChoice: preparedAnthropicToolChoice,
231
231
  toolWarnings: anthropicToolWarnings,
232
232
  betas: anthropicBetas
233
- } = prepareAnthropicTools({
233
+ } = await prepareAnthropicTools({
234
234
  tools: providerDefinedTools,
235
235
  toolChoice
236
236
  });
@@ -734,7 +734,7 @@ var BedrockChatLanguageModel = class {
734
734
  description: "Respond with a JSON object.",
735
735
  inputSchema: responseFormat.schema
736
736
  } : void 0;
737
- const { toolConfig, additionalTools, toolWarnings, betas } = prepareTools({
737
+ const { toolConfig, additionalTools, toolWarnings, betas } = await prepareTools({
738
738
  tools: jsonResponseTool ? [jsonResponseTool, ...tools != null ? tools : []] : tools,
739
739
  toolChoice: jsonResponseTool != null ? { type: "tool", toolName: jsonResponseTool.name } : toolChoice,
740
740
  modelId: this.modelId
@@ -1327,7 +1327,7 @@ import {
1327
1327
  } from "@ai-sdk/provider-utils";
1328
1328
 
1329
1329
  // src/bedrock-embedding-options.ts
1330
- import { z as z4 } from "zod/v4";
1330
+ import * 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 { z as z5 } from "zod/v4";
1345
+ import * 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 { z as z6 } from "zod/v4";
1427
+ import * as z6 from "zod/v4";
1428
1428
  var BedrockImageModel = class {
1429
1429
  constructor(modelId, config) {
1430
1430
  this.modelId = modelId;