@ai-sdk/openai 4.0.0-beta.36 → 4.0.0-beta.38

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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 4.0.0-beta.38
4
+
5
+ ### Patch Changes
6
+
7
+ - bfb756d: patch - send content: null instead of empty string for tool-only assistant messages
8
+ - Updated dependencies [2e98477]
9
+ - @ai-sdk/provider-utils@5.0.0-beta.26
10
+
11
+ ## 4.0.0-beta.37
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [eea8d98]
16
+ - @ai-sdk/provider-utils@5.0.0-beta.25
17
+
3
18
  ## 4.0.0-beta.36
4
19
 
5
20
  ### Patch Changes
package/dist/index.js CHANGED
@@ -256,7 +256,7 @@ function convertToOpenAIChatMessages({
256
256
  }
257
257
  messages.push({
258
258
  role: "assistant",
259
- content: text,
259
+ content: text || null,
260
260
  tool_calls: toolCalls.length > 0 ? toolCalls : void 0
261
261
  });
262
262
  break;
@@ -7069,7 +7069,7 @@ var OpenAISkills = class {
7069
7069
  };
7070
7070
 
7071
7071
  // src/version.ts
7072
- var VERSION = true ? "4.0.0-beta.36" : "0.0.0-test";
7072
+ var VERSION = true ? "4.0.0-beta.38" : "0.0.0-test";
7073
7073
 
7074
7074
  // src/openai-provider.ts
7075
7075
  function createOpenAI(options = {}) {