@openrouter/ai-sdk-provider 2.3.0 → 2.3.1
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/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +2 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +2 -1
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/internal/index.js
CHANGED
|
@@ -2759,11 +2759,12 @@ function convertToOpenRouterChatMessages(prompt) {
|
|
|
2759
2759
|
}
|
|
2760
2760
|
finalReasoningDetails = uniqueDetails.length > 0 ? uniqueDetails : void 0;
|
|
2761
2761
|
}
|
|
2762
|
+
const effectiveReasoning = reasoning && finalReasoningDetails ? reasoning : void 0;
|
|
2762
2763
|
messages.push({
|
|
2763
2764
|
role: "assistant",
|
|
2764
2765
|
content: text,
|
|
2765
2766
|
tool_calls: toolCalls.length > 0 ? toolCalls : void 0,
|
|
2766
|
-
reasoning:
|
|
2767
|
+
reasoning: effectiveReasoning,
|
|
2767
2768
|
reasoning_details: finalReasoningDetails,
|
|
2768
2769
|
annotations: messageAnnotations,
|
|
2769
2770
|
cache_control: getCacheControl(providerOptions)
|