@ai-sdk/openai 4.0.0-beta.16 → 4.0.0-beta.17

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,11 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 4.0.0-beta.17
4
+
5
+ ### Patch Changes
6
+
7
+ - 817a1a6: fix(openai): support file-url parts in tool output content
8
+
3
9
  ## 4.0.0-beta.16
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -3156,6 +3156,11 @@ async function convertToOpenAIResponsesInput({
3156
3156
  filename: (_a2 = item.filename) != null ? _a2 : "data",
3157
3157
  file_data: `data:${item.mediaType};base64,${item.data}`
3158
3158
  };
3159
+ case "file-url":
3160
+ return {
3161
+ type: "input_file",
3162
+ file_url: item.url
3163
+ };
3159
3164
  default:
3160
3165
  warnings.push({
3161
3166
  type: "other",
@@ -3214,6 +3219,12 @@ async function convertToOpenAIResponsesInput({
3214
3219
  file_data: `data:${item.mediaType};base64,${item.data}`
3215
3220
  };
3216
3221
  }
3222
+ case "file-url": {
3223
+ return {
3224
+ type: "input_file",
3225
+ file_url: item.url
3226
+ };
3227
+ }
3217
3228
  default: {
3218
3229
  warnings.push({
3219
3230
  type: "other",
@@ -6716,7 +6727,7 @@ var OpenAITranscriptionModel = class {
6716
6727
  };
6717
6728
 
6718
6729
  // src/version.ts
6719
- var VERSION = true ? "4.0.0-beta.16" : "0.0.0-test";
6730
+ var VERSION = true ? "4.0.0-beta.17" : "0.0.0-test";
6720
6731
 
6721
6732
  // src/openai-provider.ts
6722
6733
  function createOpenAI(options = {}) {