@ai-sdk/amazon-bedrock 3.0.125 → 3.0.126

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 ? "3.0.125" : "0.0.0-test";
11
+ var VERSION = true ? "3.0.126" : "0.0.0-test";
12
12
 
13
13
  // src/bedrock-provider.ts
14
14
  import { anthropicTools as anthropicTools2 } from "@ai-sdk/anthropic/internal";
@@ -645,7 +645,7 @@ async function convertToBedrockChatMessages(prompt) {
645
645
  bedrockContent.push(BEDROCK_CACHE_POINT);
646
646
  }
647
647
  }
648
- if (bedrockContent.length > 0) {
648
+ if (bedrockContent.some((block2) => !("cachePoint" in block2))) {
649
649
  messages.push({ role: "assistant", content: bedrockContent });
650
650
  }
651
651
  break;
@@ -1555,6 +1555,9 @@ var BedrockStreamSchema = z4.object({
1555
1555
  contentBlockIndex: z4.number(),
1556
1556
  delta: z4.union([
1557
1557
  z4.object({ text: z4.string() }),
1558
+ z4.object({
1559
+ citation: z4.record(z4.string(), z4.unknown())
1560
+ }),
1558
1561
  z4.object({ toolUse: z4.object({ input: z4.string() }) }),
1559
1562
  z4.object({
1560
1563
  reasoningContent: z4.object({ text: z4.string() })