@ai-sdk/openai 2.0.111 → 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/dist/index.mjs CHANGED
@@ -259,7 +259,7 @@ function convertToOpenAIChatMessages({
259
259
  }
260
260
  messages.push({
261
261
  role: "assistant",
262
- content: hasPromptCacheBreakpoint ? textParts : text,
262
+ content: hasPromptCacheBreakpoint ? textParts : toolCalls.length > 0 ? text || null : text,
263
263
  tool_calls: toolCalls.length > 0 ? toolCalls : void 0
264
264
  });
265
265
  break;
@@ -5068,7 +5068,7 @@ var OpenAITranscriptionModel = class {
5068
5068
  };
5069
5069
 
5070
5070
  // src/version.ts
5071
- var VERSION = true ? "2.0.111" : "0.0.0-test";
5071
+ var VERSION = true ? "2.0.113" : "0.0.0-test";
5072
5072
 
5073
5073
  // src/openai-provider.ts
5074
5074
  function createOpenAI(options = {}) {