@ai-sdk/google 3.0.124 → 3.0.126

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/google",
3
- "version": "3.0.124",
3
+ "version": "3.0.126",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -36,8 +36,8 @@
36
36
  }
37
37
  },
38
38
  "dependencies": {
39
- "@ai-sdk/provider": "3.0.16",
40
- "@ai-sdk/provider-utils": "4.0.51"
39
+ "@ai-sdk/provider": "3.0.17",
40
+ "@ai-sdk/provider-utils": "4.0.53"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "20.17.24",
@@ -298,7 +298,11 @@ export function convertToGoogleGenerativeAIMessages(
298
298
  ? {
299
299
  fileData: {
300
300
  mimeType: mediaType,
301
- fileUri: part.data.toString(),
301
+ fileUri:
302
+ part.data.protocol === 'gs:' &&
303
+ part.originalUrl != null
304
+ ? part.originalUrl
305
+ : part.data.toString(),
302
306
  },
303
307
  }
304
308
  : {