@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 +6 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/chat/openai-compatible-chat-language-model.ts +2 -2
package/dist/index.mjs
CHANGED
|
@@ -581,7 +581,6 @@ var OpenAICompatibleChatLanguageModel = class {
|
|
|
581
581
|
});
|
|
582
582
|
}
|
|
583
583
|
const content = [];
|
|
584
|
-
content.push(...convertOpenAICompatibleContent(choice.message.content));
|
|
585
584
|
const reasoning = (_a = choice.message.reasoning_content) != null ? _a : choice.message.reasoning;
|
|
586
585
|
if (reasoning != null && reasoning.length > 0) {
|
|
587
586
|
content.push({
|
|
@@ -589,6 +588,7 @@ var OpenAICompatibleChatLanguageModel = class {
|
|
|
589
588
|
text: reasoning
|
|
590
589
|
});
|
|
591
590
|
}
|
|
591
|
+
content.push(...convertOpenAICompatibleContent(choice.message.content));
|
|
592
592
|
if (choice.message.tool_calls != null) {
|
|
593
593
|
for (const toolCall of choice.message.tool_calls) {
|
|
594
594
|
const thoughtSignature = (_c = (_b = toolCall.extra_content) == null ? void 0 : _b.google) == null ? void 0 : _c.thought_signature;
|
|
@@ -1776,7 +1776,7 @@ import {
|
|
|
1776
1776
|
} from "@ai-sdk/provider-utils";
|
|
1777
1777
|
|
|
1778
1778
|
// src/version.ts
|
|
1779
|
-
var VERSION = true ? "2.0.
|
|
1779
|
+
var VERSION = true ? "2.0.86" : "0.0.0-test";
|
|
1780
1780
|
|
|
1781
1781
|
// src/openai-compatible-provider.ts
|
|
1782
1782
|
function createOpenAICompatible(options) {
|