@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.
@@ -233,7 +233,7 @@ function convertToOpenAIChatMessages({
233
233
  }
234
234
  messages.push({
235
235
  role: "assistant",
236
- content: text,
236
+ content: text || null,
237
237
  tool_calls: toolCalls.length > 0 ? toolCalls : void 0
238
238
  });
239
239
  break;
@@ -1760,13 +1760,15 @@ var modelMaxImagesPerCall = {
1760
1760
  "gpt-image-1": 10,
1761
1761
  "gpt-image-1-mini": 10,
1762
1762
  "gpt-image-1.5": 10,
1763
+ "gpt-image-2": 10,
1763
1764
  "chatgpt-image-latest": 10
1764
1765
  };
1765
1766
  var defaultResponseFormatPrefixes = [
1766
1767
  "chatgpt-image-",
1767
1768
  "gpt-image-1-mini",
1768
1769
  "gpt-image-1.5",
1769
- "gpt-image-1"
1770
+ "gpt-image-1",
1771
+ "gpt-image-2"
1770
1772
  ];
1771
1773
  function hasDefaultResponseFormat(modelId) {
1772
1774
  return defaultResponseFormatPrefixes.some(