@ai-sdk/openai-compatible 2.0.85 → 2.0.86

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,11 @@
1
1
  # @ai-sdk/openai-compatible
2
2
 
3
+ ## 2.0.86
4
+
5
+ ### Patch Changes
6
+
7
+ - b3c2bb4: fix(openai-compatible, groq, alibaba): put reasoning before text in doGenerate
8
+
3
9
  ## 2.0.85
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -594,7 +594,6 @@ var OpenAICompatibleChatLanguageModel = class {
594
594
  });
595
595
  }
596
596
  const content = [];
597
- content.push(...convertOpenAICompatibleContent(choice.message.content));
598
597
  const reasoning = (_a = choice.message.reasoning_content) != null ? _a : choice.message.reasoning;
599
598
  if (reasoning != null && reasoning.length > 0) {
600
599
  content.push({
@@ -602,6 +601,7 @@ var OpenAICompatibleChatLanguageModel = class {
602
601
  text: reasoning
603
602
  });
604
603
  }
604
+ content.push(...convertOpenAICompatibleContent(choice.message.content));
605
605
  if (choice.message.tool_calls != null) {
606
606
  for (const toolCall of choice.message.tool_calls) {
607
607
  const thoughtSignature = (_c = (_b = toolCall.extra_content) == null ? void 0 : _b.google) == null ? void 0 : _c.thought_signature;
@@ -1754,7 +1754,7 @@ async function fileToBlob(file) {
1754
1754
  var import_provider_utils6 = require("@ai-sdk/provider-utils");
1755
1755
 
1756
1756
  // src/version.ts
1757
- var VERSION = true ? "2.0.85" : "0.0.0-test";
1757
+ var VERSION = true ? "2.0.86" : "0.0.0-test";
1758
1758
 
1759
1759
  // src/openai-compatible-provider.ts
1760
1760
  function createOpenAICompatible(options) {