@ai-sdk/google 3.0.132 → 3.0.133

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @ai-sdk/google
2
2
 
3
+ ## 3.0.133
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [d5e7d82]
8
+ - @ai-sdk/provider-utils@4.0.59
9
+
3
10
  ## 3.0.132
4
11
 
5
12
  ### Patch Changes
package/dist/index.js CHANGED
@@ -235,7 +235,7 @@ var googleInteractionsTranscriptionResponseSchema = import_v43.z.object({
235
235
  var import_provider_utils25 = require("@ai-sdk/provider-utils");
236
236
 
237
237
  // src/version.ts
238
- var VERSION = true ? "3.0.132" : "0.0.0-test";
238
+ var VERSION = true ? "3.0.133" : "0.0.0-test";
239
239
 
240
240
  // src/google-generative-ai-embedding-model.ts
241
241
  var import_provider2 = require("@ai-sdk/provider");
@@ -2495,7 +2495,7 @@ var GoogleGenerativeAILanguageModel = class {
2495
2495
  usageMetadata: usageMetadata != null ? usageMetadata : null,
2496
2496
  finishMessage: (_y = candidate == null ? void 0 : candidate.finishMessage) != null ? _y : null,
2497
2497
  serviceTier: (_z = usageMetadata == null ? void 0 : usageMetadata.serviceTier) != null ? _z : null,
2498
- ...(candidate == null ? void 0 : candidate.continuationToken) != null ? { continuationToken: candidate.continuationToken } : {},
2498
+ ...(candidate == null ? void 0 : candidate.continuationToken) != null && rawFinishReason === "MAX_TOKENS" ? { continuationToken: candidate.continuationToken } : {},
2499
2499
  ...continuedUsageMetadata != null && firstPromptTokenCount != null ? { initialPromptTokenCount: firstPromptTokenCount } : {}
2500
2500
  }
2501
2501
  },