@ai-sdk/openai 3.0.113 → 3.0.115

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/dist/index.mjs CHANGED
@@ -3251,7 +3251,7 @@ async function convertFunctionToolResultOutput({
3251
3251
  return convertScalarOutput(JSON.stringify(output.value));
3252
3252
  case "content":
3253
3253
  return output.value.map((item) => {
3254
- var _a3, _b, _c, _d, _e;
3254
+ var _a3, _b, _c, _d, _e, _f, _g;
3255
3255
  const promptCacheBreakpoint2 = getPromptCacheBreakpoint2(
3256
3256
  item.providerOptions,
3257
3257
  providerOptionsName
@@ -3286,10 +3286,29 @@ async function convertFunctionToolResultOutput({
3286
3286
  }
3287
3287
  };
3288
3288
  }
3289
+ case "file-id": {
3290
+ return {
3291
+ type: "input_file",
3292
+ file_id: typeof item.fileId === "string" ? item.fileId : item.fileId[providerOptionsName],
3293
+ ...promptCacheBreakpoint2 != null && {
3294
+ prompt_cache_breakpoint: promptCacheBreakpoint2
3295
+ }
3296
+ };
3297
+ }
3298
+ case "image-file-id": {
3299
+ return {
3300
+ type: "input_image",
3301
+ file_id: typeof item.fileId === "string" ? item.fileId : item.fileId[providerOptionsName],
3302
+ detail: (_f = (_e = item.providerOptions) == null ? void 0 : _e[providerOptionsName]) == null ? void 0 : _f.imageDetail,
3303
+ ...promptCacheBreakpoint2 != null && {
3304
+ prompt_cache_breakpoint: promptCacheBreakpoint2
3305
+ }
3306
+ };
3307
+ }
3289
3308
  case "file-data": {
3290
3309
  return {
3291
3310
  type: "input_file",
3292
- filename: (_e = item.filename) != null ? _e : "data",
3311
+ filename: (_g = item.filename) != null ? _g : "data",
3293
3312
  file_data: `data:${item.mediaType};base64,${item.data}`,
3294
3313
  ...promptCacheBreakpoint2 != null && {
3295
3314
  prompt_cache_breakpoint: promptCacheBreakpoint2
@@ -8234,7 +8253,7 @@ var OpenAITranscriptionModel = class {
8234
8253
  };
8235
8254
 
8236
8255
  // src/version.ts
8237
- var VERSION = true ? "3.0.113" : "0.0.0-test";
8256
+ var VERSION = true ? "3.0.115" : "0.0.0-test";
8238
8257
 
8239
8258
  // src/openai-provider.ts
8240
8259
  function createOpenAI(options = {}) {