@ai-sdk/google 3.0.0-beta.87 → 3.0.0-beta.89

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.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  } from "@ai-sdk/provider-utils";
8
8
 
9
9
  // src/version.ts
10
- var VERSION = true ? "3.0.0-beta.87" : "0.0.0-test";
10
+ var VERSION = true ? "3.0.0-beta.89" : "0.0.0-test";
11
11
 
12
12
  // src/google-generative-ai-embedding-model.ts
13
13
  import {
@@ -472,6 +472,9 @@ function convertToGoogleGenerativeAIMessages(prompt, options) {
472
472
  systemMessagesAllowed = false;
473
473
  const parts = [];
474
474
  for (const part of content) {
475
+ if (part.type === "tool-approval-response") {
476
+ continue;
477
+ }
475
478
  const output = part.output;
476
479
  if (output.type === "content") {
477
480
  for (const contentPart of output.value) {