ai 4.1.60 → 4.1.61

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,16 @@
1
1
  # ai
2
2
 
3
+ ## 4.1.61
4
+
5
+ ### Patch Changes
6
+
7
+ - 2e1101a: feat (provider/openai): pdf input support
8
+ - Updated dependencies [2e1101a]
9
+ - @ai-sdk/provider@1.0.11
10
+ - @ai-sdk/provider-utils@2.1.13
11
+ - @ai-sdk/ui-utils@1.1.19
12
+ - @ai-sdk/react@1.1.23
13
+
3
14
  ## 4.1.60
4
15
 
5
16
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -674,6 +674,10 @@ interface FilePart {
674
674
  */
675
675
  data: DataContent | URL;
676
676
  /**
677
+ Optional filename of the file.
678
+ */
679
+ filename?: string;
680
+ /**
677
681
  Mime type of the file.
678
682
  */
679
683
  mimeType: string;
package/dist/index.d.ts CHANGED
@@ -674,6 +674,10 @@ interface FilePart {
674
674
  */
675
675
  data: DataContent | URL;
676
676
  /**
677
+ Optional filename of the file.
678
+ */
679
+ filename?: string;
680
+ /**
677
681
  Mime type of the file.
678
682
  */
679
683
  mimeType: string;
package/dist/index.js CHANGED
@@ -1399,6 +1399,7 @@ function convertPartToLanguageModelPart(part, downloadedAssets) {
1399
1399
  return {
1400
1400
  type: "file",
1401
1401
  data: normalizedData instanceof Uint8Array ? convertDataContentToBase64String(normalizedData) : normalizedData,
1402
+ filename: part.filename,
1402
1403
  mimeType,
1403
1404
  providerMetadata: (_d = part.providerOptions) != null ? _d : part.experimental_providerMetadata
1404
1405
  };
@@ -1917,6 +1918,7 @@ var imagePartSchema = import_zod5.z.object({
1917
1918
  var filePartSchema = import_zod5.z.object({
1918
1919
  type: import_zod5.z.literal("file"),
1919
1920
  data: import_zod5.z.union([dataContentSchema, import_zod5.z.instanceof(URL)]),
1921
+ filename: import_zod5.z.string().optional(),
1920
1922
  mimeType: import_zod5.z.string(),
1921
1923
  providerOptions: providerMetadataSchema.optional(),
1922
1924
  experimental_providerMetadata: providerMetadataSchema.optional()