@ai-sdk/openai 4.0.0-beta.15 → 4.0.0-beta.16
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 +9 -0
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +3 -3
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +3 -3
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/responses/convert-to-openai-responses-input.ts +1 -1
- package/src/responses/openai-responses-language-model.ts +2 -2
package/dist/index.mjs
CHANGED
|
@@ -3085,7 +3085,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
3085
3085
|
break;
|
|
3086
3086
|
}
|
|
3087
3087
|
case "custom": {
|
|
3088
|
-
if (part.kind === "openai
|
|
3088
|
+
if (part.kind === "openai.compaction") {
|
|
3089
3089
|
const providerOpts = (_n = part.providerOptions) == null ? void 0 : _n[providerOptionsName];
|
|
3090
3090
|
const id = providerOpts == null ? void 0 : providerOpts.itemId;
|
|
3091
3091
|
if (hasConversation && id != null) {
|
|
@@ -5445,7 +5445,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
5445
5445
|
case "compaction": {
|
|
5446
5446
|
content.push({
|
|
5447
5447
|
type: "custom",
|
|
5448
|
-
kind: "openai
|
|
5448
|
+
kind: "openai.compaction",
|
|
5449
5449
|
providerMetadata: {
|
|
5450
5450
|
[providerOptionsName]: {
|
|
5451
5451
|
type: "compaction",
|
|
@@ -6088,7 +6088,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
6088
6088
|
} else if (value.item.type === "compaction") {
|
|
6089
6089
|
controller.enqueue({
|
|
6090
6090
|
type: "custom",
|
|
6091
|
-
kind: "openai
|
|
6091
|
+
kind: "openai.compaction",
|
|
6092
6092
|
providerMetadata: {
|
|
6093
6093
|
[providerOptionsName]: {
|
|
6094
6094
|
type: "compaction",
|
|
@@ -6809,7 +6809,7 @@ var OpenAITranscriptionModel = class {
|
|
|
6809
6809
|
};
|
|
6810
6810
|
|
|
6811
6811
|
// src/version.ts
|
|
6812
|
-
var VERSION = true ? "4.0.0-beta.
|
|
6812
|
+
var VERSION = true ? "4.0.0-beta.16" : "0.0.0-test";
|
|
6813
6813
|
|
|
6814
6814
|
// src/openai-provider.ts
|
|
6815
6815
|
function createOpenAI(options = {}) {
|