@ai-sdk/openai 3.0.5 → 3.0.6
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 +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +6 -0
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +6 -0
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/internal/index.mjs
CHANGED
|
@@ -2821,6 +2821,12 @@ async function convertToOpenAIResponsesInput({
|
|
|
2821
2821
|
image_url: `data:${item.mediaType};base64,${item.data}`
|
|
2822
2822
|
};
|
|
2823
2823
|
}
|
|
2824
|
+
case "image-url": {
|
|
2825
|
+
return {
|
|
2826
|
+
type: "input_image",
|
|
2827
|
+
image_url: item.url
|
|
2828
|
+
};
|
|
2829
|
+
}
|
|
2824
2830
|
case "file-data": {
|
|
2825
2831
|
return {
|
|
2826
2832
|
type: "input_file",
|