@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.
package/dist/index.mjs CHANGED
@@ -241,7 +241,7 @@ function convertToOpenAIChatMessages({
241
241
  }
242
242
  messages.push({
243
243
  role: "assistant",
244
- content: text || null,
244
+ content: toolCalls.length > 0 ? text || null : text,
245
245
  tool_calls: toolCalls.length > 0 ? toolCalls : void 0
246
246
  });
247
247
  break;
@@ -6873,7 +6873,7 @@ var OpenAITranscriptionModel = class {
6873
6873
  };
6874
6874
 
6875
6875
  // src/version.ts
6876
- var VERSION = true ? "3.0.58" : "0.0.0-test";
6876
+ var VERSION = true ? "3.0.59" : "0.0.0-test";
6877
6877
 
6878
6878
  // src/openai-provider.ts
6879
6879
  function createOpenAI(options = {}) {