@ai-sdk/google 3.0.132 → 3.0.134

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.
@@ -2088,7 +2088,7 @@ var GoogleGenerativeAILanguageModel = class {
2088
2088
  usageMetadata: usageMetadata != null ? usageMetadata : null,
2089
2089
  finishMessage: (_y = candidate == null ? void 0 : candidate.finishMessage) != null ? _y : null,
2090
2090
  serviceTier: (_z = usageMetadata == null ? void 0 : usageMetadata.serviceTier) != null ? _z : null,
2091
- ...(candidate == null ? void 0 : candidate.continuationToken) != null ? { continuationToken: candidate.continuationToken } : {},
2091
+ ...(candidate == null ? void 0 : candidate.continuationToken) != null && rawFinishReason === "MAX_TOKENS" ? { continuationToken: candidate.continuationToken } : {},
2092
2092
  ...continuedUsageMetadata != null && firstPromptTokenCount != null ? { initialPromptTokenCount: firstPromptTokenCount } : {}
2093
2093
  }
2094
2094
  },