@ai-sdk/openai 3.0.53 → 3.0.54

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
@@ -241,7 +241,7 @@ function convertToOpenAIChatMessages({
241
241
  }
242
242
  messages.push({
243
243
  role: "assistant",
244
- content: text,
244
+ content: text || null,
245
245
  tool_calls: toolCalls.length > 0 ? toolCalls : void 0
246
246
  });
247
247
  break;
@@ -1768,13 +1768,15 @@ var modelMaxImagesPerCall = {
1768
1768
  "gpt-image-1": 10,
1769
1769
  "gpt-image-1-mini": 10,
1770
1770
  "gpt-image-1.5": 10,
1771
+ "gpt-image-2": 10,
1771
1772
  "chatgpt-image-latest": 10
1772
1773
  };
1773
1774
  var defaultResponseFormatPrefixes = [
1774
1775
  "chatgpt-image-",
1775
1776
  "gpt-image-1-mini",
1776
1777
  "gpt-image-1.5",
1777
- "gpt-image-1"
1778
+ "gpt-image-1",
1779
+ "gpt-image-2"
1778
1780
  ];
1779
1781
  function hasDefaultResponseFormat(modelId) {
1780
1782
  return defaultResponseFormatPrefixes.some(
@@ -6744,7 +6746,7 @@ var OpenAITranscriptionModel = class {
6744
6746
  };
6745
6747
 
6746
6748
  // src/version.ts
6747
- var VERSION = true ? "3.0.53" : "0.0.0-test";
6749
+ var VERSION = true ? "3.0.54" : "0.0.0-test";
6748
6750
 
6749
6751
  // src/openai-provider.ts
6750
6752
  function createOpenAI(options = {}) {