@ai-sdk/gateway 3.0.241 → 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/CHANGELOG.md +14 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/gateway-language-model-settings.ts +1 -1
- package/src/gateway-video-model.ts +10 -0
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.
|
|
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";
|