ai 5.0.7 → 5.0.9

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # ai
2
2
 
3
+ ## 5.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - afd5c2a: fix(ai): preserve filename for file parts in convertToModelMessages
8
+
9
+ ## 5.0.8
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [35f93ce]
14
+ - @ai-sdk/gateway@1.0.4
15
+
3
16
  ## 5.0.7
4
17
 
5
18
  ### Patch Changes
package/dist/index.js CHANGED
@@ -9421,6 +9421,7 @@ function convertToModelMessages(messages, options) {
9421
9421
  content.push({
9422
9422
  type: "file",
9423
9423
  mediaType: part.mediaType,
9424
+ filename: part.filename,
9424
9425
  data: part.url
9425
9426
  });
9426
9427
  } else if (part.type === "reasoning") {