@mastra/ai-sdk 1.7.0 → 1.7.1-alpha.0

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
@@ -8858,7 +8858,7 @@ function convertMastraChunkToAISDKBase({ chunk, mode = "stream", normalizeWarnin
8858
8858
  type: "finish",
8859
8859
  finishReason: normalizeFinishReason(chunk.payload.stepResult.reason),
8860
8860
  ...includeRawFinishReason ? { rawFinishReason: chunk.payload.stepResult.reason } : {},
8861
- totalUsage: normalizeUsage(chunk.payload.output.usage)
8861
+ totalUsage: normalizeUsage(chunk.payload.output?.usage ?? chunk.payload.usage)
8862
8862
  };
8863
8863
  case "reasoning-start": return {
8864
8864
  type: "reasoning-start",