@ai-sdk/openai 2.0.0-alpha.7 → 2.0.0-alpha.8

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,15 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 2.0.0-alpha.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 4af5233: Fix PDF file parts when passed as a string url or Uint8Array
8
+ - Updated dependencies [4fef487]
9
+ - Updated dependencies [9222aeb]
10
+ - @ai-sdk/provider-utils@3.0.0-alpha.8
11
+ - @ai-sdk/provider@2.0.0-alpha.8
12
+
3
13
  ## 2.0.0-alpha.7
4
14
 
5
15
  ### Patch Changes
package/dist/index.js CHANGED
@@ -136,7 +136,7 @@ function convertToOpenAIChatMessages({
136
136
  type: "file",
137
137
  file: {
138
138
  filename: (_c = part.filename) != null ? _c : `part-${index}.pdf`,
139
- file_data: `data:application/pdf;base64,${part.data}`
139
+ file_data: `data:application/pdf;base64,${(0, import_provider_utils.convertToBase64)(part.data)}`
140
140
  }
141
141
  };
142
142
  } else {