@ai-sdk/openai-compatible 2.0.40 → 2.0.42

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,21 @@
1
1
  # @ai-sdk/openai-compatible
2
2
 
3
+ ## 2.0.42
4
+
5
+ ### Patch Changes
6
+
7
+ - a7f3c72: trigger release for all packages after provenance setup
8
+ - 408a2ad: patch - send content: null instead of empty string for tool-only assistant messages
9
+ - Updated dependencies [a7f3c72]
10
+ - @ai-sdk/provider@3.0.9
11
+ - @ai-sdk/provider-utils@4.0.24
12
+
13
+ ## 2.0.41
14
+
15
+ ### Patch Changes
16
+
17
+ - d42076d: Add AI Gateway hint to provider READMEs
18
+
3
19
  ## 2.0.40
4
20
 
5
21
  ### Patch Changes
package/README.md CHANGED
@@ -4,6 +4,8 @@ This package provides a foundation for implementing providers that expose an Ope
4
4
 
5
5
  The primary [OpenAI provider](../openai/README.md) is more feature-rich, including OpenAI-specific experimental and legacy features. This package offers a lighter-weight alternative focused on core OpenAI-compatible functionality.
6
6
 
7
+ > **Deploying to Vercel?** With Vercel's AI Gateway you can access hundreds of models from any provider — no additional packages, API keys, or extra cost. [Get started with AI Gateway](https://vercel.com/ai-gateway).
8
+
7
9
  ## Setup
8
10
 
9
11
  The provider is available in the `@ai-sdk/openai-compatible` module. You can install it with
package/dist/index.js CHANGED
@@ -256,7 +256,7 @@ function convertToOpenAICompatibleChatMessages(prompt) {
256
256
  }
257
257
  messages.push({
258
258
  role: "assistant",
259
- content: text,
259
+ content: text || null,
260
260
  ...reasoning.length > 0 ? { reasoning_content: reasoning } : {},
261
261
  tool_calls: toolCalls.length > 0 ? toolCalls : void 0,
262
262
  ...metadata
@@ -1693,7 +1693,7 @@ async function fileToBlob(file) {
1693
1693
  var import_provider_utils6 = require("@ai-sdk/provider-utils");
1694
1694
 
1695
1695
  // src/version.ts
1696
- var VERSION = true ? "2.0.40" : "0.0.0-test";
1696
+ var VERSION = true ? "2.0.42" : "0.0.0-test";
1697
1697
 
1698
1698
  // src/openai-compatible-provider.ts
1699
1699
  function createOpenAICompatible(options) {