@ai-sdk/openai 3.0.48 → 3.0.49

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
+ ## 3.0.49
4
+
5
+ ### Patch Changes
6
+
7
+ - bc01093: fix(openai): support file-url parts in tool output content
8
+
3
9
  ## 3.0.48
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -3134,6 +3134,11 @@ async function convertToOpenAIResponsesInput({
3134
3134
  filename: (_a2 = item.filename) != null ? _a2 : "data",
3135
3135
  file_data: `data:${item.mediaType};base64,${item.data}`
3136
3136
  };
3137
+ case "file-url":
3138
+ return {
3139
+ type: "input_file",
3140
+ file_url: item.url
3141
+ };
3137
3142
  default:
3138
3143
  warnings.push({
3139
3144
  type: "other",
@@ -3192,6 +3197,12 @@ async function convertToOpenAIResponsesInput({
3192
3197
  file_data: `data:${item.mediaType};base64,${item.data}`
3193
3198
  };
3194
3199
  }
3200
+ case "file-url": {
3201
+ return {
3202
+ type: "input_file",
3203
+ file_url: item.url
3204
+ };
3205
+ }
3195
3206
  default: {
3196
3207
  warnings.push({
3197
3208
  type: "other",
@@ -6636,7 +6647,7 @@ var OpenAITranscriptionModel = class {
6636
6647
  };
6637
6648
 
6638
6649
  // src/version.ts
6639
- var VERSION = true ? "3.0.48" : "0.0.0-test";
6650
+ var VERSION = true ? "3.0.49" : "0.0.0-test";
6640
6651
 
6641
6652
  // src/openai-provider.ts
6642
6653
  function createOpenAI(options = {}) {