@ai-sdk/google 2.0.96 → 2.0.98

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 ? "2.0.96" : "0.0.0-test";
10
+ var VERSION = true ? "2.0.98" : "0.0.0-test";
11
11
 
12
12
  // src/google-generative-ai-embedding-model.ts
13
13
  import {
@@ -557,7 +557,7 @@ function convertToGoogleGenerativeAIMessages(prompt, options) {
557
557
  part.data instanceof URL ? {
558
558
  fileData: {
559
559
  mimeType: mediaType,
560
- fileUri: part.data.toString()
560
+ fileUri: part.data.protocol === "gs:" && part.originalUrl != null ? part.originalUrl : part.data.toString()
561
561
  }
562
562
  } : {
563
563
  inlineData: {