@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ai-sdk/gateway",
3
3
  "private": false,
4
- "version": "3.0.238",
4
+ "version": "3.0.242",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -32,7 +32,7 @@
32
32
  "dependencies": {
33
33
  "@vercel/oidc": "3.2.0",
34
34
  "@ai-sdk/provider": "3.0.19",
35
- "@ai-sdk/provider-utils": "4.0.67"
35
+ "@ai-sdk/provider-utils": "4.0.68"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/node": "18.15.11",
@@ -15,9 +15,12 @@ export type GatewayImageModelId =
15
15
  | 'bytedance/seedream-4.5'
16
16
  | 'bytedance/seedream-5.0-lite'
17
17
  | 'bytedance/seedream-5.0-pro'
18
+ | 'bytedance/seedream-5.5'
18
19
  | 'meta/muse-image-1.0'
19
20
  | 'microsoft/mai-image-2.6'
20
21
  | 'microsoft/mai-image-2.6-flash'
22
+ | 'microsoft/mai-image-2.7'
23
+ | 'microsoft/mai-image-2.7-flash'
21
24
  | 'minimax/minimax-h3-image'
22
25
  | 'minimax/minimax-h3-image-highspeed'
23
26
  | 'openai/gpt-image-1-mini'
@@ -27,7 +30,6 @@ export type GatewayImageModelId =
27
30
  | 'openai/gpt-image-2.5-sunburst'
28
31
  | 'openai/gpt-image-2.6-flare'
29
32
  | 'openai/gpt-image-2.6-sunburst'
30
- | 'prodia/flux-fast-schnell'
31
33
  | 'recraft/recraft-v2'
32
34
  | 'recraft/recraft-v3'
33
35
  | 'recraft/recraft-v4'
@@ -1,14 +1,10 @@
1
1
  export type GatewayModelId =
2
2
  | 'alibaba/qwen-3-14b'
3
- | 'alibaba/qwen-3-235b'
4
3
  | 'alibaba/qwen-3-30b'
5
4
  | 'alibaba/qwen-3-32b'
6
- | 'alibaba/qwen3-coder'
7
5
  | 'alibaba/qwen3-coder-30b-a3b'
8
6
  | 'alibaba/qwen3-coder-next'
9
- | 'alibaba/qwen3-max-thinking'
10
7
  | 'alibaba/qwen3-next-80b-a3b-instruct'
11
- | 'alibaba/qwen3-next-80b-a3b-thinking'
12
8
  | 'alibaba/qwen3-vl-instruct'
13
9
  | 'alibaba/qwen3.5-flash'
14
10
  | 'alibaba/qwen3.5-plus'
@@ -109,6 +105,7 @@ export type GatewayModelId =
109
105
  | 'google/gemini-4-argon'
110
106
  | 'google/gemini-4-carbon'
111
107
  | 'google/gemini-4-hydrogen'
108
+ | 'google/gemini-4-neon'
112
109
  | 'google/gemini-nano-banana-2.1'
113
110
  | 'google/gemini-omni-1.2-flash'
114
111
  | 'google/gemini-omni-flash-preview'
@@ -141,13 +138,9 @@ export type GatewayModelId =
141
138
  | 'meta/muse-spark-1.3-contributor'
142
139
  | 'meta/muse-spark-open'
143
140
  | 'meta/muse-wonder-1.0'
144
- | 'minimax/minimax-m2'
145
141
  | 'minimax/minimax-m2.1'
146
- | 'minimax/minimax-m2.1-lightning'
147
142
  | 'minimax/minimax-m2.5'
148
- | 'minimax/minimax-m2.5-highspeed'
149
143
  | 'minimax/minimax-m2.7'
150
- | 'minimax/minimax-m2.7-highspeed'
151
144
  | 'minimax/minimax-m3'
152
145
  | 'minimax/minimax-m3.1-flash'
153
146
  | 'mistral/codestral'
@@ -251,6 +244,10 @@ export type GatewayModelId =
251
244
  | 'openai/gpt-6.1-sol-fast'
252
245
  | 'openai/gpt-6.1-terra'
253
246
  | 'openai/gpt-6.1-terra-fast'
247
+ | 'openai/gpt-6.2-astra'
248
+ | 'openai/gpt-6.2-astra-fast'
249
+ | 'openai/gpt-6.2-sol'
250
+ | 'openai/gpt-6.2-sol-fast'
254
251
  | 'openai/gpt-oss-120b'
255
252
  | 'openai/gpt-oss-20b'
256
253
  | 'openai/gpt-oss-safeguard-120b'
@@ -266,6 +263,7 @@ export type GatewayModelId =
266
263
  | 'perplexity/sonar'
267
264
  | 'quiverai/arrow-2'
268
265
  | 'quiverai/arrow-2-telos'
266
+ | 'recursive/flint-v1.0'
269
267
  | 'reflection/beam'
270
268
  | 'reflection/beam-free'
271
269
  | 'sakana/fugu-max'
@@ -288,7 +286,6 @@ export type GatewayModelId =
288
286
  | 'spacexai/grok-4.5'
289
287
  | 'spacexai/grok-4.6'
290
288
  | 'spacexai/grok-4.7'
291
- | 'spacexai/grok-build-0.1'
292
289
  | 'stealth/glyph-cluster'
293
290
  | 'stepfun/step-3.7-flash'
294
291
  | 'stepfun/step-5-preview'
@@ -300,6 +297,7 @@ export type GatewayModelId =
300
297
  | 'tencent/hy4-flash'
301
298
  | 'tencent/hy4-preview'
302
299
  | 'thinkingmachines/inkling'
300
+ | 'thinkingmachines/inkling-2-mini'
303
301
  | 'thinkingmachines/inkling-2-small'
304
302
  | 'thinkingmachines/inkling-small'
305
303
  | 'xiaomi/mimo-v2.6-flash'
@@ -14,6 +14,7 @@ export type GatewayVideoModelId =
14
14
  | 'bytedance/seedance-2.0-fast'
15
15
  | 'bytedance/seedance-2.0-mini'
16
16
  | 'bytedance/seedance-2.5'
17
+ | 'bytedance/seedance-2.5-flash'
17
18
  | 'bytedance/seedance-v1.0-pro'
18
19
  | 'bytedance/seedance-v1.0-pro-fast'
19
20
  | 'google/veo-3.1-fast-generate-001'
@@ -25,6 +25,15 @@ import type { GatewayConfig } from './gateway-config';
25
25
  import { asGatewayError } from './errors';
26
26
  import { parseAuthMethod } from './errors/parse-auth-method';
27
27
 
28
+ /**
29
+ * Maximum size of the result event: 512 * 1024 * 1024 characters.
30
+ *
31
+ * The result event contains all generated videos, which can be base64 encoded,
32
+ * so it can be much larger than the default maximum event size. The limit is
33
+ * about the maximum length of a string in V8.
34
+ */
35
+ const MAX_RESULT_EVENT_SIZE = 512 * 1024 * 1024;
36
+
28
37
  export class GatewayVideoModel implements Experimental_VideoModelV3 {
29
38
  readonly specificationVersion = 'v3' as const;
30
39
  // Set a very large number to prevent client-side splitting of requests
@@ -122,6 +131,7 @@ export class GatewayVideoModel implements Experimental_VideoModelV3 {
122
131
  const eventStream = parseJsonEventStream({
123
132
  stream: response.body,
124
133
  schema: gatewayVideoEventSchema,
134
+ maxEventSize: MAX_RESULT_EVENT_SIZE,
125
135
  });
126
136
 
127
137
  const reader = eventStream.getReader();