@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 +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/internal/index.mjs
CHANGED
|
@@ -3128,6 +3128,11 @@ async function convertToOpenAIResponsesInput({
|
|
|
3128
3128
|
filename: (_a2 = item.filename) != null ? _a2 : "data",
|
|
3129
3129
|
file_data: `data:${item.mediaType};base64,${item.data}`
|
|
3130
3130
|
};
|
|
3131
|
+
case "file-url":
|
|
3132
|
+
return {
|
|
3133
|
+
type: "input_file",
|
|
3134
|
+
file_url: item.url
|
|
3135
|
+
};
|
|
3131
3136
|
default:
|
|
3132
3137
|
warnings.push({
|
|
3133
3138
|
type: "other",
|
|
@@ -3186,6 +3191,12 @@ async function convertToOpenAIResponsesInput({
|
|
|
3186
3191
|
file_data: `data:${item.mediaType};base64,${item.data}`
|
|
3187
3192
|
};
|
|
3188
3193
|
}
|
|
3194
|
+
case "file-url": {
|
|
3195
|
+
return {
|
|
3196
|
+
type: "input_file",
|
|
3197
|
+
file_url: item.url
|
|
3198
|
+
};
|
|
3199
|
+
}
|
|
3189
3200
|
default: {
|
|
3190
3201
|
warnings.push({
|
|
3191
3202
|
type: "other",
|