@ai-sdk/openai-compatible 2.0.46 → 2.0.48

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,18 @@
1
1
  # @ai-sdk/openai-compatible
2
2
 
3
+ ## 2.0.48
4
+
5
+ ### Patch Changes
6
+
7
+ - e40e1d4: fix: accept empty string `role` in streaming delta chunks from OpenAI-compatible providers
8
+
9
+ ## 2.0.47
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [f591416]
14
+ - @ai-sdk/provider-utils@4.0.27
15
+
3
16
  ## 2.0.46
4
17
 
5
18
  ### Patch Changes
package/dist/index.js CHANGED
@@ -970,7 +970,7 @@ var chunkBaseSchema = import_v43.z.looseObject({
970
970
  choices: import_v43.z.array(
971
971
  import_v43.z.object({
972
972
  delta: import_v43.z.object({
973
- role: import_v43.z.enum(["assistant"]).nullish(),
973
+ role: import_v43.z.enum(["assistant", ""]).nullish(),
974
974
  content: import_v43.z.string().nullish(),
975
975
  // Most openai-compatible models set `reasoning_content`, but some
976
976
  // providers serving `gpt-oss` set `reasoning`. See #7866
@@ -1698,7 +1698,7 @@ async function fileToBlob(file) {
1698
1698
  var import_provider_utils6 = require("@ai-sdk/provider-utils");
1699
1699
 
1700
1700
  // src/version.ts
1701
- var VERSION = true ? "2.0.46" : "0.0.0-test";
1701
+ var VERSION = true ? "2.0.48" : "0.0.0-test";
1702
1702
 
1703
1703
  // src/openai-compatible-provider.ts
1704
1704
  function createOpenAICompatible(options) {