@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 +6 -0
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +11 -0
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +11 -0
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/responses/convert-to-openai-responses-input.ts +12 -0
- package/src/responses/openai-responses-api.ts +1 -0
package/dist/index.mjs
CHANGED
|
@@ -3211,6 +3211,11 @@ async function convertToOpenAIResponsesInput({
|
|
|
3211
3211
|
filename: (_a2 = item.filename) != null ? _a2 : "data",
|
|
3212
3212
|
file_data: `data:${item.mediaType};base64,${item.data}`
|
|
3213
3213
|
};
|
|
3214
|
+
case "file-url":
|
|
3215
|
+
return {
|
|
3216
|
+
type: "input_file",
|
|
3217
|
+
file_url: item.url
|
|
3218
|
+
};
|
|
3214
3219
|
default:
|
|
3215
3220
|
warnings.push({
|
|
3216
3221
|
type: "other",
|
|
@@ -3269,6 +3274,12 @@ async function convertToOpenAIResponsesInput({
|
|
|
3269
3274
|
file_data: `data:${item.mediaType};base64,${item.data}`
|
|
3270
3275
|
};
|
|
3271
3276
|
}
|
|
3277
|
+
case "file-url": {
|
|
3278
|
+
return {
|
|
3279
|
+
type: "input_file",
|
|
3280
|
+
file_url: item.url
|
|
3281
|
+
};
|
|
3282
|
+
}
|
|
3272
3283
|
default: {
|
|
3273
3284
|
warnings.push({
|
|
3274
3285
|
type: "other",
|
|
@@ -6727,7 +6738,7 @@ var OpenAITranscriptionModel = class {
|
|
|
6727
6738
|
};
|
|
6728
6739
|
|
|
6729
6740
|
// src/version.ts
|
|
6730
|
-
var VERSION = true ? "3.0.
|
|
6741
|
+
var VERSION = true ? "3.0.49" : "0.0.0-test";
|
|
6731
6742
|
|
|
6732
6743
|
// src/openai-provider.ts
|
|
6733
6744
|
function createOpenAI(options = {}) {
|