@ai-sdk/gateway 3.0.189 → 3.0.191

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.189",
4
+ "version": "3.0.191",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -31,8 +31,8 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@vercel/oidc": "3.2.0",
34
- "@ai-sdk/provider": "3.0.15",
35
- "@ai-sdk/provider-utils": "4.0.50"
34
+ "@ai-sdk/provider": "3.0.16",
35
+ "@ai-sdk/provider-utils": "4.0.51"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/node": "18.15.11",
@@ -18,6 +18,8 @@ export type GatewayImageModelId =
18
18
  | 'openai/gpt-image-1-mini'
19
19
  | 'openai/gpt-image-1.5'
20
20
  | 'openai/gpt-image-2'
21
+ | 'openai/gpt-image-2.5-flare'
22
+ | 'openai/gpt-image-2.5-sunburst'
21
23
  | 'prodia/flux-fast-schnell'
22
24
  | 'quiverai/arrow-1.1'
23
25
  | 'recraft/recraft-v2'
@@ -89,6 +89,9 @@ export class GatewayImageModel implements ImageModelV3 {
89
89
 
90
90
  return {
91
91
  images: responseBody.images, // Always base64 strings from server
92
+ ...(responseBody.isRetryable != null && {
93
+ isRetryable: responseBody.isRetryable,
94
+ }),
92
95
  warnings: mapGatewayWarnings(responseBody.warnings),
93
96
  providerMetadata:
94
97
  responseBody.providerMetadata as ImageModelV3ProviderMetadata,
@@ -168,6 +171,7 @@ const gatewayImageUsageSchema = z.object({
168
171
 
169
172
  const gatewayImageResponseSchema = z.object({
170
173
  images: z.array(z.string()), // Always base64 strings over the wire
174
+ isRetryable: z.boolean().optional(),
171
175
  warnings: z.array(gatewayImageWarningSchema).optional(),
172
176
  providerMetadata: z
173
177
  .record(z.string(), providerMetadataEntrySchema)
@@ -64,6 +64,7 @@ export type GatewayModelId =
64
64
  | 'deepseek/deepseek-v4-flash-vision-exp'
65
65
  | 'deepseek/deepseek-v4-pro'
66
66
  | 'deepseek/deepseek-v4-pro-0813'
67
+ | 'deepseek/deepseek-v4.1-flash-beta'
67
68
  | 'google/gemini-2.5-flash'
68
69
  | 'google/gemini-2.5-flash-image'
69
70
  | 'google/gemini-2.5-flash-lite'
@@ -84,10 +85,13 @@ export type GatewayModelId =
84
85
  | 'google/gemma-4-26b-a4b-it'
85
86
  | 'google/gemma-4-31b-it'
86
87
  | 'inception/mercury-2'
88
+ | 'inception/mercury-2.5'
87
89
  | 'inception/mercury-coder-small'
88
90
  | 'inclusionai/ling-3.0-flash'
89
91
  | 'inclusionai/ling-3.0-flash-fin'
90
92
  | 'inclusionai/ling-3.0-flash-fin-free'
93
+ | 'inclusionai/ling-3.0-flash-sante'
94
+ | 'inclusionai/ling-3.0-flash-sante-free'
91
95
  | 'interfaze/interfaze-beta'
92
96
  | 'kwaipilot/kat-coder-air-v2.5'
93
97
  | 'kwaipilot/kat-coder-pro-v1'
@@ -110,10 +114,8 @@ export type GatewayModelId =
110
114
  | 'minimax/minimax-m2.5'
111
115
  | 'minimax/minimax-m2.5-highspeed'
112
116
  | 'minimax/minimax-m2.7'
113
- | 'minimax/minimax-m2.7-free'
114
117
  | 'minimax/minimax-m2.7-highspeed'
115
118
  | 'minimax/minimax-m3'
116
- | 'minimax/minimax-m3-free'
117
119
  | 'mistral/codestral'
118
120
  | 'mistral/devstral-2'
119
121
  | 'mistral/devstral-small-2'
@@ -188,6 +190,7 @@ export type GatewayModelId =
188
190
  | 'openai/gpt-5.6-terra'
189
191
  | 'openai/gpt-5.6-terra-fast'
190
192
  | 'openai/gpt-6-astra'
193
+ | 'openai/gpt-6-astra-fast'
191
194
  | 'openai/gpt-oss-120b'
192
195
  | 'openai/gpt-oss-20b'
193
196
  | 'openai/gpt-oss-safeguard-120b'
@@ -229,7 +232,6 @@ export type GatewayModelId =
229
232
  | 'thinkingmachines/inkling-small'
230
233
  | 'xiaomi/mimo-v2.5'
231
234
  | 'xiaomi/mimo-v2.5-pro'
232
- | 'xiaomi/mimo-v2.5-pro-ultraspeed'
233
235
  | 'zai/glm-4.5'
234
236
  | 'zai/glm-4.5-air'
235
237
  | 'zai/glm-4.5v'
@@ -245,6 +247,5 @@ export type GatewayModelId =
245
247
  | 'zai/glm-5.3'
246
248
  | 'zai/glm-5.3-fast'
247
249
  | 'zai/glm-5.3-flash'
248
- | 'zai/glm-5.3-promo-50'
249
250
  | 'zai/glm-5v-turbo'
250
251
  | (string & {});