@ai-sdk/gateway 3.0.238 → 3.0.242

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
@@ -1401,6 +1401,7 @@ import {
1401
1401
  resolve as resolve7
1402
1402
  } from "@ai-sdk/provider-utils";
1403
1403
  import { z as z12 } from "zod/v4";
1404
+ var MAX_RESULT_EVENT_SIZE = 512 * 1024 * 1024;
1404
1405
  var GatewayVideoModel = class {
1405
1406
  constructor(modelId, config) {
1406
1407
  this.modelId = modelId;
@@ -1477,7 +1478,8 @@ var GatewayVideoModel = class {
1477
1478
  }
1478
1479
  const eventStream = parseJsonEventStream({
1479
1480
  stream: response.body,
1480
- schema: gatewayVideoEventSchema
1481
+ schema: gatewayVideoEventSchema,
1482
+ maxEventSize: MAX_RESULT_EVENT_SIZE
1481
1483
  });
1482
1484
  const reader = eventStream.getReader();
1483
1485
  const { done, value: parseResult } = await reader.read();
@@ -2833,7 +2835,7 @@ async function getVercelRequestId() {
2833
2835
  }
2834
2836
 
2835
2837
  // src/version.ts
2836
- var VERSION = true ? "3.0.238" : "0.0.0-test";
2838
+ var VERSION = true ? "3.0.242" : "0.0.0-test";
2837
2839
 
2838
2840
  // src/gateway-provider.ts
2839
2841
  var AI_GATEWAY_PROTOCOL_VERSION = "0.0.1";