@ai-sdk/openai 2.0.17 → 2.0.19
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 +19 -0
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -4
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +6 -4
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +6 -4
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/internal/index.js
CHANGED
|
@@ -2203,9 +2203,10 @@ async function convertToOpenAIResponsesMessages({
|
|
|
2203
2203
|
};
|
|
2204
2204
|
} else if (part.mediaType === "application/pdf") {
|
|
2205
2205
|
if (part.data instanceof URL) {
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2206
|
+
return {
|
|
2207
|
+
type: "input_file",
|
|
2208
|
+
file_url: part.data.toString()
|
|
2209
|
+
};
|
|
2209
2210
|
}
|
|
2210
2211
|
return {
|
|
2211
2212
|
type: "input_file",
|
|
@@ -2499,7 +2500,8 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
2499
2500
|
constructor(modelId, config) {
|
|
2500
2501
|
this.specificationVersion = "v2";
|
|
2501
2502
|
this.supportedUrls = {
|
|
2502
|
-
"image/*": [/^https?:\/\/.*$/]
|
|
2503
|
+
"image/*": [/^https?:\/\/.*$/],
|
|
2504
|
+
"application/pdf": [/^https?:\/\/.*$/]
|
|
2503
2505
|
};
|
|
2504
2506
|
this.modelId = modelId;
|
|
2505
2507
|
this.config = config;
|