@ai-sdk/openai 2.0.112 → 2.0.113

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 2.0.113
4
+
5
+ ### Patch Changes
6
+
7
+ - 21eef03: Send null content for tool-call-only assistant messages.
8
+
3
9
  ## 2.0.112
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -270,7 +270,7 @@ function convertToOpenAIChatMessages({
270
270
  }
271
271
  messages.push({
272
272
  role: "assistant",
273
- content: hasPromptCacheBreakpoint ? textParts : text,
273
+ content: hasPromptCacheBreakpoint ? textParts : toolCalls.length > 0 ? text || null : text,
274
274
  tool_calls: toolCalls.length > 0 ? toolCalls : void 0
275
275
  });
276
276
  break;
@@ -4973,7 +4973,7 @@ var OpenAITranscriptionModel = class {
4973
4973
  };
4974
4974
 
4975
4975
  // src/version.ts
4976
- var VERSION = true ? "2.0.112" : "0.0.0-test";
4976
+ var VERSION = true ? "2.0.113" : "0.0.0-test";
4977
4977
 
4978
4978
  // src/openai-provider.ts
4979
4979
  function createOpenAI(options = {}) {