@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.js
CHANGED
|
@@ -3076,6 +3076,11 @@ async function convertToOpenAIResponsesInput({
|
|
|
3076
3076
|
filename: (_a2 = item.filename) != null ? _a2 : "data",
|
|
3077
3077
|
file_data: `data:${item.mediaType};base64,${item.data}`
|
|
3078
3078
|
};
|
|
3079
|
+
case "file-url":
|
|
3080
|
+
return {
|
|
3081
|
+
type: "input_file",
|
|
3082
|
+
file_url: item.url
|
|
3083
|
+
};
|
|
3079
3084
|
default:
|
|
3080
3085
|
warnings.push({
|
|
3081
3086
|
type: "other",
|
|
@@ -3134,6 +3139,12 @@ async function convertToOpenAIResponsesInput({
|
|
|
3134
3139
|
file_data: `data:${item.mediaType};base64,${item.data}`
|
|
3135
3140
|
};
|
|
3136
3141
|
}
|
|
3142
|
+
case "file-url": {
|
|
3143
|
+
return {
|
|
3144
|
+
type: "input_file",
|
|
3145
|
+
file_url: item.url
|
|
3146
|
+
};
|
|
3147
|
+
}
|
|
3137
3148
|
default: {
|
|
3138
3149
|
warnings.push({
|
|
3139
3150
|
type: "other",
|