@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.
@@ -904,9 +904,9 @@ var ReasoningFormat = /* @__PURE__ */ ((ReasoningFormat2) => {
904
904
  // src/schemas/reasoning-details.ts
905
905
  var CommonReasoningDetailSchema = import_v4.z.object({
906
906
  id: import_v4.z.string().nullish(),
907
- format: import_v4.z.nativeEnum(ReasoningFormat).nullish(),
907
+ format: import_v4.z.enum(ReasoningFormat).nullish(),
908
908
  index: import_v4.z.number().optional()
909
- }).passthrough();
909
+ }).loose();
910
910
  var ReasoningDetailSummarySchema = import_v4.z.object({
911
911
  type: import_v4.z.literal("reasoning.summary" /* Summary */),
912
912
  summary: import_v4.z.string()
@@ -1938,6 +1938,8 @@ var OpenRouterChatLanguageModel = class {
1938
1938
  const lastDetail = accumulatedReasoningDetails[accumulatedReasoningDetails.length - 1];
1939
1939
  if ((lastDetail == null ? void 0 : lastDetail.type) === "reasoning.text" /* Text */) {
1940
1940
  lastDetail.text = (lastDetail.text || "") + (detail.text || "");
1941
+ lastDetail.signature = lastDetail.signature || detail.signature;
1942
+ lastDetail.format = lastDetail.format || detail.format;
1941
1943
  } else {
1942
1944
  accumulatedReasoningDetails.push(__spreadValues({}, detail));
1943
1945
  }