@ai-sdk/openai 3.0.0-beta.75 → 3.0.0-beta.76

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/dist/index.mjs CHANGED
@@ -1633,12 +1633,17 @@ import { z as z8 } from "zod/v4";
1633
1633
  var openaiImageResponseSchema = lazySchema7(
1634
1634
  () => zodSchema7(
1635
1635
  z8.object({
1636
+ created: z8.number().nullish(),
1636
1637
  data: z8.array(
1637
1638
  z8.object({
1638
1639
  b64_json: z8.string(),
1639
1640
  revised_prompt: z8.string().nullish()
1640
1641
  })
1641
1642
  ),
1643
+ background: z8.string().nullish(),
1644
+ output_format: z8.string().nullish(),
1645
+ size: z8.string().nullish(),
1646
+ quality: z8.string().nullish(),
1642
1647
  usage: z8.object({
1643
1648
  input_tokens: z8.number().nullish(),
1644
1649
  output_tokens: z8.number().nullish(),
@@ -1737,11 +1742,17 @@ var OpenAIImageModel = class {
1737
1742
  },
1738
1743
  providerMetadata: {
1739
1744
  openai: {
1740
- images: response.data.map(
1741
- (item) => item.revised_prompt ? {
1742
- revisedPrompt: item.revised_prompt
1743
- } : null
1744
- )
1745
+ images: response.data.map((item) => {
1746
+ var _a2, _b2, _c2, _d2, _e2;
1747
+ return {
1748
+ ...item.revised_prompt ? { revisedPrompt: item.revised_prompt } : {},
1749
+ created: (_a2 = response.created) != null ? _a2 : void 0,
1750
+ size: (_b2 = response.size) != null ? _b2 : void 0,
1751
+ quality: (_c2 = response.quality) != null ? _c2 : void 0,
1752
+ background: (_d2 = response.background) != null ? _d2 : void 0,
1753
+ outputFormat: (_e2 = response.output_format) != null ? _e2 : void 0
1754
+ };
1755
+ })
1745
1756
  }
1746
1757
  }
1747
1758
  };
@@ -5243,7 +5254,7 @@ var OpenAITranscriptionModel = class {
5243
5254
  };
5244
5255
 
5245
5256
  // src/version.ts
5246
- var VERSION = true ? "3.0.0-beta.75" : "0.0.0-test";
5257
+ var VERSION = true ? "3.0.0-beta.76" : "0.0.0-test";
5247
5258
 
5248
5259
  // src/openai-provider.ts
5249
5260
  function createOpenAI(options = {}) {