@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 CHANGED
@@ -2793,11 +2793,12 @@ function convertToOpenRouterChatMessages(prompt) {
2793
2793
  }
2794
2794
  finalReasoningDetails = uniqueDetails.length > 0 ? uniqueDetails : void 0;
2795
2795
  }
2796
+ const effectiveReasoning = reasoning && finalReasoningDetails ? reasoning : void 0;
2796
2797
  messages.push({
2797
2798
  role: "assistant",
2798
2799
  content: text,
2799
2800
  tool_calls: toolCalls.length > 0 ? toolCalls : void 0,
2800
- reasoning: reasoning || void 0,
2801
+ reasoning: effectiveReasoning,
2801
2802
  reasoning_details: finalReasoningDetails,
2802
2803
  annotations: messageAnnotations,
2803
2804
  cache_control: getCacheControl(providerOptions)
@@ -4609,7 +4610,7 @@ function withUserAgentSuffix2(headers, ...userAgentSuffixParts) {
4609
4610
  }
4610
4611
 
4611
4612
  // src/version.ts
4612
- var VERSION2 = false ? "0.0.0-test" : "2.3.0";
4613
+ var VERSION2 = false ? "0.0.0-test" : "2.3.1";
4613
4614
 
4614
4615
  // src/provider.ts
4615
4616
  function createOpenRouter(options = {}) {