@ai-sdk/openai 2.0.4 → 2.0.5
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 +7 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +1 -1
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal/index.js +2 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +2 -2
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/internal/index.mjs
CHANGED
|
@@ -1098,7 +1098,7 @@ var openaiChatChunkSchema = z5.union([
|
|
|
1098
1098
|
openaiErrorDataSchema
|
|
1099
1099
|
]);
|
|
1100
1100
|
function isReasoningModel(modelId) {
|
|
1101
|
-
return modelId.startsWith("o");
|
|
1101
|
+
return modelId.startsWith("o") || modelId.startsWith("gpt-5");
|
|
1102
1102
|
}
|
|
1103
1103
|
function supportsFlexProcessing(modelId) {
|
|
1104
1104
|
return modelId.startsWith("o3") || modelId.startsWith("o4-mini");
|
|
@@ -3242,7 +3242,7 @@ function isErrorChunk(chunk) {
|
|
|
3242
3242
|
return chunk.type === "error";
|
|
3243
3243
|
}
|
|
3244
3244
|
function getResponsesModelConfig(modelId) {
|
|
3245
|
-
if (modelId.startsWith("o") || modelId.startsWith("codex-") || modelId.startsWith("computer-use")) {
|
|
3245
|
+
if (modelId.startsWith("o") || modelId.startsWith("gpt-5") || modelId.startsWith("codex-") || modelId.startsWith("computer-use")) {
|
|
3246
3246
|
if (modelId.startsWith("o1-mini") || modelId.startsWith("o1-preview")) {
|
|
3247
3247
|
return {
|
|
3248
3248
|
isReasoningModel: true,
|