@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/openai",
3
- "version": "3.0.58",
3
+ "version": "3.0.59",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -179,7 +179,7 @@ export function convertToOpenAIChatMessages({
179
179
 
180
180
  messages.push({
181
181
  role: 'assistant',
182
- content: text || null,
182
+ content: toolCalls.length > 0 ? text || null : text,
183
183
  tool_calls: toolCalls.length > 0 ? toolCalls : undefined,
184
184
  });
185
185