@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.
@@ -233,7 +233,7 @@ function convertToOpenAIChatMessages({
233
233
  }
234
234
  messages.push({
235
235
  role: "assistant",
236
- content: text || null,
236
+ content: toolCalls.length > 0 ? text || null : text,
237
237
  tool_calls: toolCalls.length > 0 ? toolCalls : void 0
238
238
  });
239
239
  break;