@ai-sdk/anthropic 2.0.65 → 2.0.66

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.
@@ -471,7 +471,7 @@ var anthropicMessagesChunkSchema = lazySchema2(
471
471
  }),
472
472
  z2.object({
473
473
  type: z2.literal("compaction_delta"),
474
- content: z2.string()
474
+ content: z2.string().nullish()
475
475
  }),
476
476
  z2.object({
477
477
  type: z2.literal("citations_delta"),
@@ -2964,11 +2964,13 @@ var AnthropicMessagesLanguageModel = class {
2964
2964
  return;
2965
2965
  }
2966
2966
  case "compaction_delta": {
2967
- controller.enqueue({
2968
- type: "text-delta",
2969
- id: String(value.index),
2970
- delta: value.delta.content
2971
- });
2967
+ if (value.delta.content != null) {
2968
+ controller.enqueue({
2969
+ type: "text-delta",
2970
+ id: String(value.index),
2971
+ delta: value.delta.content
2972
+ });
2973
+ }
2972
2974
  return;
2973
2975
  }
2974
2976
  case "input_json_delta": {