@openrouter/ai-sdk-provider 2.2.3 → 2.2.4

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
@@ -3473,15 +3473,13 @@ var OpenRouterChatLanguageModel = class {
3473
3473
  }
3474
3474
  const reasoningMetadata = {
3475
3475
  openrouter: {
3476
- reasoning_details: delta.reasoning_details
3476
+ reasoning_details: accumulatedReasoningDetails.map((d) => __spreadValues({}, d))
3477
3477
  }
3478
3478
  };
3479
3479
  for (const detail of delta.reasoning_details) {
3480
3480
  switch (detail.type) {
3481
3481
  case "reasoning.text" /* Text */: {
3482
- if (detail.text) {
3483
- emitReasoningChunk(detail.text, reasoningMetadata);
3484
- }
3482
+ emitReasoningChunk(detail.text || "", reasoningMetadata);
3485
3483
  break;
3486
3484
  }
3487
3485
  case "reasoning.encrypted" /* Encrypted */: {
@@ -4525,7 +4523,7 @@ function withUserAgentSuffix2(headers, ...userAgentSuffixParts) {
4525
4523
  }
4526
4524
 
4527
4525
  // src/version.ts
4528
- var VERSION2 = false ? "0.0.0-test" : "2.2.3";
4526
+ var VERSION2 = false ? "0.0.0-test" : "2.2.4";
4529
4527
 
4530
4528
  // src/provider.ts
4531
4529
  function createOpenRouter(options = {}) {