@ai-sdk/google 2.0.97 → 2.0.99

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.
@@ -339,7 +339,7 @@ function convertToGoogleGenerativeAIMessages(prompt, options) {
339
339
  part.data instanceof URL ? {
340
340
  fileData: {
341
341
  mimeType: mediaType,
342
- fileUri: part.data.toString()
342
+ fileUri: part.data.protocol === "gs:" && part.originalUrl != null ? part.originalUrl : part.data.toString()
343
343
  }
344
344
  } : {
345
345
  inlineData: {