@ai-sdk/google 3.0.125 → 3.0.127

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.
@@ -498,7 +498,7 @@ function convertToGoogleGenerativeAIMessages(prompt, options) {
498
498
  part.data instanceof URL ? {
499
499
  fileData: {
500
500
  mimeType: mediaType,
501
- fileUri: part.data.toString()
501
+ fileUri: part.data.protocol === "gs:" && part.originalUrl != null ? part.originalUrl : part.data.toString()
502
502
  }
503
503
  } : {
504
504
  inlineData: {