@ai-sdk/openai-compatible 2.0.59 → 2.0.61

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.61
4
+
5
+ ### Patch Changes
6
+
7
+ - 94fda5c: Preserve structured error data from chat completion SSE streams.
8
+
9
+ ## 2.0.60
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [06fb54c]
14
+ - @ai-sdk/provider-utils@4.0.39
15
+
3
16
  ## 2.0.59
4
17
 
5
18
  ### Patch Changes
package/dist/index.js CHANGED
@@ -702,7 +702,7 @@ var OpenAICompatibleChatLanguageModel = class {
702
702
  finishReason = { unified: "error", raw: void 0 };
703
703
  controller.enqueue({
704
704
  type: "error",
705
- error: chunk.value.error.message
705
+ error: chunk.value.error
706
706
  });
707
707
  return;
708
708
  }
@@ -1718,7 +1718,7 @@ async function fileToBlob(file) {
1718
1718
  var import_provider_utils6 = require("@ai-sdk/provider-utils");
1719
1719
 
1720
1720
  // src/version.ts
1721
- var VERSION = true ? "2.0.59" : "0.0.0-test";
1721
+ var VERSION = true ? "2.0.61" : "0.0.0-test";
1722
1722
 
1723
1723
  // src/openai-compatible-provider.ts
1724
1724
  function createOpenAICompatible(options) {