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