ai 6.0.292 → 6.0.293

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
@@ -1224,7 +1224,7 @@ import {
1224
1224
  } from "@ai-sdk/provider-utils";
1225
1225
 
1226
1226
  // src/version.ts
1227
- var VERSION = true ? "6.0.292" : "0.0.0-test";
1227
+ var VERSION = true ? "6.0.293" : "0.0.0-test";
1228
1228
 
1229
1229
  // src/util/download/download.ts
1230
1230
  var download = async ({
@@ -1696,7 +1696,7 @@ async function downloadAssets(messages, download2, supportedUrls) {
1696
1696
  if (contentPart.type === "image-url" || contentPart.type === "file-url") {
1697
1697
  downloadableFiles.push({
1698
1698
  data: new URL(contentPart.url),
1699
- mediaType: contentPart.type === "image-url" ? "image/*" : void 0
1699
+ mediaType: contentPart.type === "image-url" ? "image/*" : contentPart.mediaType
1700
1700
  });
1701
1701
  }
1702
1702
  }
@@ -2139,6 +2139,7 @@ var outputSchema = z4.discriminatedUnion(
2139
2139
  z4.object({
2140
2140
  type: z4.literal("file-url"),
2141
2141
  url: z4.string(),
2142
+ mediaType: z4.string().optional(),
2142
2143
  providerOptions: providerMetadataSchema.optional()
2143
2144
  }),
2144
2145
  z4.object({