@openrouter/ai-sdk-provider 1.2.7 → 1.2.8

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
@@ -950,9 +950,9 @@ var ReasoningFormat = /* @__PURE__ */ ((ReasoningFormat2) => {
950
950
  // src/schemas/reasoning-details.ts
951
951
  var CommonReasoningDetailSchema = import_v4.z.object({
952
952
  id: import_v4.z.string().nullish(),
953
- format: import_v4.z.nativeEnum(ReasoningFormat).nullish(),
953
+ format: import_v4.z.enum(ReasoningFormat).nullish(),
954
954
  index: import_v4.z.number().optional()
955
- }).passthrough();
955
+ }).loose();
956
956
  var ReasoningDetailSummarySchema = import_v4.z.object({
957
957
  type: import_v4.z.literal("reasoning.summary" /* Summary */),
958
958
  summary: import_v4.z.string()
@@ -1984,6 +1984,8 @@ var OpenRouterChatLanguageModel = class {
1984
1984
  const lastDetail = accumulatedReasoningDetails[accumulatedReasoningDetails.length - 1];
1985
1985
  if ((lastDetail == null ? void 0 : lastDetail.type) === "reasoning.text" /* Text */) {
1986
1986
  lastDetail.text = (lastDetail.text || "") + (detail.text || "");
1987
+ lastDetail.signature = lastDetail.signature || detail.signature;
1988
+ lastDetail.format = lastDetail.format || detail.format;
1987
1989
  } else {
1988
1990
  accumulatedReasoningDetails.push(__spreadValues({}, detail));
1989
1991
  }
@@ -2678,7 +2680,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
2678
2680
  }
2679
2681
 
2680
2682
  // src/version.ts
2681
- var VERSION = false ? "0.0.0-test" : "1.2.7";
2683
+ var VERSION = false ? "0.0.0-test" : "1.2.8";
2682
2684
 
2683
2685
  // src/provider.ts
2684
2686
  function createOpenRouter(options = {}) {