@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.mjs CHANGED
@@ -2760,11 +2760,12 @@ function convertToOpenRouterChatMessages(prompt) {
2760
2760
  }
2761
2761
  finalReasoningDetails = uniqueDetails.length > 0 ? uniqueDetails : void 0;
2762
2762
  }
2763
+ const effectiveReasoning = reasoning && finalReasoningDetails ? reasoning : void 0;
2763
2764
  messages.push({
2764
2765
  role: "assistant",
2765
2766
  content: text,
2766
2767
  tool_calls: toolCalls.length > 0 ? toolCalls : void 0,
2767
- reasoning: reasoning || void 0,
2768
+ reasoning: effectiveReasoning,
2768
2769
  reasoning_details: finalReasoningDetails,
2769
2770
  annotations: messageAnnotations,
2770
2771
  cache_control: getCacheControl(providerOptions)
@@ -4576,7 +4577,7 @@ function withUserAgentSuffix2(headers, ...userAgentSuffixParts) {
4576
4577
  }
4577
4578
 
4578
4579
  // src/version.ts
4579
- var VERSION2 = false ? "0.0.0-test" : "2.3.0";
4580
+ var VERSION2 = false ? "0.0.0-test" : "2.3.1";
4580
4581
 
4581
4582
  // src/provider.ts
4582
4583
  function createOpenRouter(options = {}) {