@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.
@@ -294,7 +294,7 @@ function convertToOpenAIChatMessages({
294
294
  }
295
295
  messages.push({
296
296
  role: "assistant",
297
- content: hasPromptCacheBreakpoint ? textParts : text,
297
+ content: hasPromptCacheBreakpoint ? textParts : toolCalls.length > 0 ? text || null : text,
298
298
  tool_calls: toolCalls.length > 0 ? toolCalls : void 0
299
299
  });
300
300
  break;