@ai-sdk/gateway 3.0.190 → 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.190",
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)
@@ -85,6 +85,7 @@ export type GatewayModelId =
85
85
  | 'google/gemma-4-26b-a4b-it'
86
86
  | 'google/gemma-4-31b-it'
87
87
  | 'inception/mercury-2'
88
+ | 'inception/mercury-2.5'
88
89
  | 'inception/mercury-coder-small'
89
90
  | 'inclusionai/ling-3.0-flash'
90
91
  | 'inclusionai/ling-3.0-flash-fin'
@@ -231,7 +232,6 @@ export type GatewayModelId =
231
232
  | 'thinkingmachines/inkling-small'
232
233
  | 'xiaomi/mimo-v2.5'
233
234
  | 'xiaomi/mimo-v2.5-pro'
234
- | 'xiaomi/mimo-v2.5-pro-ultraspeed'
235
235
  | 'zai/glm-4.5'
236
236
  | 'zai/glm-4.5-air'
237
237
  | 'zai/glm-4.5v'
@@ -247,6 +247,5 @@ export type GatewayModelId =
247
247
  | 'zai/glm-5.3'
248
248
  | 'zai/glm-5.3-fast'
249
249
  | 'zai/glm-5.3-flash'
250
- | 'zai/glm-5.3-promo-50'
251
250
  | 'zai/glm-5v-turbo'
252
251
  | (string & {});