@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/internal/index.mjs
CHANGED
|
@@ -3102,6 +3102,11 @@ async function convertToOpenAIResponsesInput({
|
|
|
3102
3102
|
filename: (_a2 = item.filename) != null ? _a2 : "data",
|
|
3103
3103
|
file_data: `data:${item.mediaType};base64,${item.data}`
|
|
3104
3104
|
};
|
|
3105
|
+
case "file-url":
|
|
3106
|
+
return {
|
|
3107
|
+
type: "input_file",
|
|
3108
|
+
file_url: item.url
|
|
3109
|
+
};
|
|
3105
3110
|
default:
|
|
3106
3111
|
warnings.push({
|
|
3107
3112
|
type: "other",
|
|
@@ -3160,6 +3165,12 @@ async function convertToOpenAIResponsesInput({
|
|
|
3160
3165
|
file_data: `data:${item.mediaType};base64,${item.data}`
|
|
3161
3166
|
};
|
|
3162
3167
|
}
|
|
3168
|
+
case "file-url": {
|
|
3169
|
+
return {
|
|
3170
|
+
type: "input_file",
|
|
3171
|
+
file_url: item.url
|
|
3172
|
+
};
|
|
3173
|
+
}
|
|
3163
3174
|
default: {
|
|
3164
3175
|
warnings.push({
|
|
3165
3176
|
type: "other",
|