@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/index.mjs
CHANGED
|
@@ -1104,7 +1104,7 @@ var openaiChatChunkSchema = z5.union([
|
|
|
1104
1104
|
openaiErrorDataSchema
|
|
1105
1105
|
]);
|
|
1106
1106
|
function isReasoningModel(modelId) {
|
|
1107
|
-
return modelId.startsWith("o");
|
|
1107
|
+
return modelId.startsWith("o") || modelId.startsWith("gpt-5");
|
|
1108
1108
|
}
|
|
1109
1109
|
function supportsFlexProcessing(modelId) {
|
|
1110
1110
|
return modelId.startsWith("o3") || modelId.startsWith("o4-mini");
|
|
@@ -3142,7 +3142,7 @@ function isErrorChunk(chunk) {
|
|
|
3142
3142
|
return chunk.type === "error";
|
|
3143
3143
|
}
|
|
3144
3144
|
function getResponsesModelConfig(modelId) {
|
|
3145
|
-
if (modelId.startsWith("o") || modelId.startsWith("codex-") || modelId.startsWith("computer-use")) {
|
|
3145
|
+
if (modelId.startsWith("o") || modelId.startsWith("gpt-5") || modelId.startsWith("codex-") || modelId.startsWith("computer-use")) {
|
|
3146
3146
|
if (modelId.startsWith("o1-mini") || modelId.startsWith("o1-preview")) {
|
|
3147
3147
|
return {
|
|
3148
3148
|
isReasoningModel: true,
|