@ai-sdk/openai 2.0.55 → 2.0.56
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 +1 -1
package/dist/internal/index.mjs
CHANGED
|
@@ -3763,7 +3763,14 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3763
3763
|
id: (_i = (_h = (_g = this.config).generateId) == null ? void 0 : _h.call(_g)) != null ? _i : generateId2(),
|
|
3764
3764
|
mediaType: "text/plain",
|
|
3765
3765
|
title: (_k = (_j = annotation.quote) != null ? _j : annotation.filename) != null ? _k : "Document",
|
|
3766
|
-
filename: (_l = annotation.filename) != null ? _l : annotation.file_id
|
|
3766
|
+
filename: (_l = annotation.filename) != null ? _l : annotation.file_id,
|
|
3767
|
+
...annotation.file_id ? {
|
|
3768
|
+
providerMetadata: {
|
|
3769
|
+
openai: {
|
|
3770
|
+
fileId: annotation.file_id
|
|
3771
|
+
}
|
|
3772
|
+
}
|
|
3773
|
+
} : {}
|
|
3767
3774
|
});
|
|
3768
3775
|
}
|
|
3769
3776
|
}
|
|
@@ -4341,7 +4348,14 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
4341
4348
|
id: (_s = (_r = (_q = self.config).generateId) == null ? void 0 : _r.call(_q)) != null ? _s : generateId2(),
|
|
4342
4349
|
mediaType: "text/plain",
|
|
4343
4350
|
title: (_u = (_t = value.annotation.quote) != null ? _t : value.annotation.filename) != null ? _u : "Document",
|
|
4344
|
-
filename: (_v = value.annotation.filename) != null ? _v : value.annotation.file_id
|
|
4351
|
+
filename: (_v = value.annotation.filename) != null ? _v : value.annotation.file_id,
|
|
4352
|
+
...value.annotation.file_id ? {
|
|
4353
|
+
providerMetadata: {
|
|
4354
|
+
openai: {
|
|
4355
|
+
fileId: value.annotation.file_id
|
|
4356
|
+
}
|
|
4357
|
+
}
|
|
4358
|
+
} : {}
|
|
4345
4359
|
});
|
|
4346
4360
|
}
|
|
4347
4361
|
} else if (isErrorChunk(value)) {
|