@ai-sdk/openai 3.0.58 → 3.0.59

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.
@@ -282,7 +282,7 @@ function convertToOpenAIChatMessages({
282
282
  }
283
283
  messages.push({
284
284
  role: "assistant",
285
- content: text || null,
285
+ content: toolCalls.length > 0 ? text || null : text,
286
286
  tool_calls: toolCalls.length > 0 ? toolCalls : void 0
287
287
  });
288
288
  break;