@ai-sdk/openai 4.0.61 → 4.0.62

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.
@@ -160,7 +160,7 @@ declare const modelMaxImagesPerCall: Record<OpenAIImageModelId, number>;
160
160
  declare function hasDefaultResponseFormat(modelId: string): boolean;
161
161
  declare function getMaxImagesPerCall(modelId: OpenAIImageModelId): number;
162
162
  declare const openaiImageModelOptions: _ai_sdk_provider_utils.LazySchema<{
163
- quality?: "low" | "medium" | "high" | "auto" | "standard" | "hd" | undefined;
163
+ quality?: "low" | "medium" | "high" | "xhigh" | "max" | "auto" | "standard" | "hd" | undefined;
164
164
  background?: "auto" | "transparent" | "opaque" | undefined;
165
165
  outputFormat?: "png" | "jpeg" | "webp" | undefined;
166
166
  outputCompression?: number | undefined;
@@ -168,7 +168,7 @@ declare const openaiImageModelOptions: _ai_sdk_provider_utils.LazySchema<{
168
168
  }>;
169
169
  type OpenAIImageModelOptions = InferSchema<typeof openaiImageModelOptions>;
170
170
  declare const openaiImageModelGenerationOptions: _ai_sdk_provider_utils.LazySchema<{
171
- quality?: "low" | "medium" | "high" | "auto" | "standard" | "hd" | undefined;
171
+ quality?: "low" | "medium" | "high" | "xhigh" | "max" | "auto" | "standard" | "hd" | undefined;
172
172
  background?: "auto" | "transparent" | "opaque" | undefined;
173
173
  outputFormat?: "png" | "jpeg" | "webp" | undefined;
174
174
  outputCompression?: number | undefined;
@@ -178,7 +178,7 @@ declare const openaiImageModelGenerationOptions: _ai_sdk_provider_utils.LazySche
178
178
  }>;
179
179
  type OpenAIImageModelGenerationOptions = InferSchema<typeof openaiImageModelGenerationOptions>;
180
180
  declare const openaiImageModelEditOptions: _ai_sdk_provider_utils.LazySchema<{
181
- quality?: "low" | "medium" | "high" | "auto" | "standard" | "hd" | undefined;
181
+ quality?: "low" | "medium" | "high" | "xhigh" | "max" | "auto" | "standard" | "hd" | undefined;
182
182
  background?: "auto" | "transparent" | "opaque" | undefined;
183
183
  outputFormat?: "png" | "jpeg" | "webp" | undefined;
184
184
  outputCompression?: number | undefined;
@@ -791,7 +791,7 @@ type OpenAIResponsesTool = OpenAIResponsesFunctionTool | {
791
791
  output_compression: number | undefined;
792
792
  output_format: 'png' | 'jpeg' | 'webp' | undefined;
793
793
  partial_images: number | undefined;
794
- quality: 'auto' | 'low' | 'medium' | 'high' | undefined;
794
+ quality: 'auto' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | undefined;
795
795
  size: 'auto' | '1024x1024' | '1024x1536' | '1536x1024' | (string & {}) | undefined;
796
796
  }
797
797
  /**
@@ -2315,7 +2315,7 @@ declare const imageGenerationArgsSchema: _ai_sdk_provider_utils.LazySchema<{
2315
2315
  outputCompression?: number | undefined;
2316
2316
  outputFormat?: "png" | "jpeg" | "webp" | undefined;
2317
2317
  partialImages?: number | undefined;
2318
- quality?: "low" | "medium" | "high" | "auto" | undefined;
2318
+ quality?: "low" | "medium" | "high" | "xhigh" | "max" | "auto" | undefined;
2319
2319
  size?: string | undefined;
2320
2320
  }>;
2321
2321
  declare const imageGenerationOutputSchema: _ai_sdk_provider_utils.LazySchema<{
@@ -2371,9 +2371,10 @@ type ImageGenerationArgs = {
2371
2371
  partialImages?: number;
2372
2372
  /**
2373
2373
  * The quality of the generated image.
2374
- * One of low, medium, high, or auto. Default: auto.
2374
+ * One of low, medium, high, xhigh, max, or auto. Default: auto.
2375
+ * xhigh and max are supported by GPT Image 2.5 models.
2375
2376
  */
2376
- quality?: 'auto' | 'low' | 'medium' | 'high';
2377
+ quality?: 'auto' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';
2377
2378
  /**
2378
2379
  * The size of the generated image.
2379
2380
  * One of 1024x1024, 1024x1536, 1536x1024, or auto. gpt-image-2 also accepts
@@ -2130,9 +2130,10 @@ var baseImageModelOptionsObject = z9.object({
2130
2130
  /**
2131
2131
  * Quality of the generated image(s).
2132
2132
  *
2133
- * Valid values: `standard`, `hd`, `low`, `medium`, `high`, `auto`.
2133
+ * Valid values: `standard`, `hd`, `low`, `medium`, `high`, `xhigh`, `max`, `auto`.
2134
+ * `xhigh` and `max` are supported by GPT Image 2.5 models.
2134
2135
  */
2135
- quality: z9.enum(["standard", "hd", "low", "medium", "high", "auto"]).optional(),
2136
+ quality: z9.enum(["standard", "hd", "low", "medium", "high", "xhigh", "max", "auto"]).optional(),
2136
2137
  /**
2137
2138
  * Background behavior for the generated image(s).
2138
2139
  *
@@ -6298,7 +6299,7 @@ var imageGenerationArgsSchema = lazySchema22(
6298
6299
  outputCompression: z24.number().int().min(0).max(100).optional(),
6299
6300
  outputFormat: z24.enum(["png", "jpeg", "webp"]).optional(),
6300
6301
  partialImages: z24.number().int().min(0).max(3).optional(),
6301
- quality: z24.enum(["auto", "low", "medium", "high"]).optional(),
6302
+ quality: z24.enum(["auto", "low", "medium", "high", "xhigh", "max"]).optional(),
6302
6303
  size: z24.union([
6303
6304
  z24.enum(["1024x1024", "1024x1536", "1536x1024", "auto"]),
6304
6305
  z24.string().regex(/^\d+x\d+$/)