@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.
@@ -251,7 +251,7 @@ function convertToOpenAIChatMessages({
251
251
  }
252
252
  messages.push({
253
253
  role: "assistant",
254
- content: hasPromptCacheBreakpoint ? textParts : text,
254
+ content: hasPromptCacheBreakpoint ? textParts : toolCalls.length > 0 ? text || null : text,
255
255
  tool_calls: toolCalls.length > 0 ? toolCalls : void 0
256
256
  });
257
257
  break;