@ai-sdk/openai 3.0.0-beta.39 → 3.0.0-beta.40
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 +17 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -3
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +16 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +16 -2
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -3422,7 +3422,14 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3422
3422
|
id: (_i = (_h = (_g = this.config).generateId) == null ? void 0 : _h.call(_g)) != null ? _i : (0, import_provider_utils24.generateId)(),
|
|
3423
3423
|
mediaType: "text/plain",
|
|
3424
3424
|
title: (_k = (_j = annotation.quote) != null ? _j : annotation.filename) != null ? _k : "Document",
|
|
3425
|
-
filename: (_l = annotation.filename) != null ? _l : annotation.file_id
|
|
3425
|
+
filename: (_l = annotation.filename) != null ? _l : annotation.file_id,
|
|
3426
|
+
...annotation.file_id ? {
|
|
3427
|
+
providerMetadata: {
|
|
3428
|
+
openai: {
|
|
3429
|
+
fileId: annotation.file_id
|
|
3430
|
+
}
|
|
3431
|
+
}
|
|
3432
|
+
} : {}
|
|
3426
3433
|
});
|
|
3427
3434
|
}
|
|
3428
3435
|
}
|
|
@@ -4011,7 +4018,14 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
4011
4018
|
id: (_s = (_r = (_q = self.config).generateId) == null ? void 0 : _r.call(_q)) != null ? _s : (0, import_provider_utils24.generateId)(),
|
|
4012
4019
|
mediaType: "text/plain",
|
|
4013
4020
|
title: (_u = (_t = value.annotation.quote) != null ? _t : value.annotation.filename) != null ? _u : "Document",
|
|
4014
|
-
filename: (_v = value.annotation.filename) != null ? _v : value.annotation.file_id
|
|
4021
|
+
filename: (_v = value.annotation.filename) != null ? _v : value.annotation.file_id,
|
|
4022
|
+
...value.annotation.file_id ? {
|
|
4023
|
+
providerMetadata: {
|
|
4024
|
+
openai: {
|
|
4025
|
+
fileId: value.annotation.file_id
|
|
4026
|
+
}
|
|
4027
|
+
}
|
|
4028
|
+
} : {}
|
|
4015
4029
|
});
|
|
4016
4030
|
}
|
|
4017
4031
|
} else if (isErrorChunk(value)) {
|
|
@@ -4481,7 +4495,7 @@ var OpenAITranscriptionModel = class {
|
|
|
4481
4495
|
};
|
|
4482
4496
|
|
|
4483
4497
|
// src/version.ts
|
|
4484
|
-
var VERSION = true ? "3.0.0-beta.
|
|
4498
|
+
var VERSION = true ? "3.0.0-beta.40" : "0.0.0-test";
|
|
4485
4499
|
|
|
4486
4500
|
// src/openai-provider.ts
|
|
4487
4501
|
function createOpenAI(options = {}) {
|