@ai-sdk/openai 2.0.41 → 2.0.43

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.
@@ -1593,9 +1593,13 @@ import { z as z8 } from "zod/v4";
1593
1593
  var modelMaxImagesPerCall = {
1594
1594
  "dall-e-3": 1,
1595
1595
  "dall-e-2": 10,
1596
- "gpt-image-1": 10
1596
+ "gpt-image-1": 10,
1597
+ "gpt-image-1-mini": 10
1597
1598
  };
1598
- var hasDefaultResponseFormat = /* @__PURE__ */ new Set(["gpt-image-1"]);
1599
+ var hasDefaultResponseFormat = /* @__PURE__ */ new Set([
1600
+ "gpt-image-1",
1601
+ "gpt-image-1-mini"
1602
+ ]);
1599
1603
 
1600
1604
  // src/image/openai-image-model.ts
1601
1605
  var OpenAIImageModel = class {
@@ -2531,6 +2535,9 @@ var imageGenerationToolFactory = createProviderDefinedToolFactoryWithOutputSchem
2531
2535
  inputSchema: z18.object({}),
2532
2536
  outputSchema: imageGenerationOutputSchema
2533
2537
  });
2538
+ var imageGeneration = (args = {}) => {
2539
+ return imageGenerationToolFactory(args);
2540
+ };
2534
2541
 
2535
2542
  // src/responses/openai-responses-prepare-tools.ts
2536
2543
  function prepareResponsesTools({
@@ -4042,6 +4049,9 @@ export {
4042
4049
  fileSearchArgsSchema,
4043
4050
  fileSearchOutputSchema,
4044
4051
  hasDefaultResponseFormat,
4052
+ imageGeneration,
4053
+ imageGenerationArgsSchema,
4054
+ imageGenerationOutputSchema,
4045
4055
  modelMaxImagesPerCall,
4046
4056
  openAITranscriptionProviderOptions,
4047
4057
  openaiChatLanguageModelOptions,