@ai-sdk/openai 1.3.19 → 1.3.21
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 +12 -0
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -2
- package/dist/index.mjs.map +1 -1
- package/internal/dist/index.js +14 -2
- package/internal/dist/index.js.map +1 -1
- package/internal/dist/index.mjs +14 -2
- package/internal/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @ai-sdk/openai
|
|
2
2
|
|
|
3
|
+
## 1.3.21
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5caac29: fix(providers/openai): zod parse error with function
|
|
8
|
+
|
|
9
|
+
## 1.3.20
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- dd5450e: feat(provider/openai): add o3 & o4-mini with developer systemMessageMode
|
|
14
|
+
|
|
3
15
|
## 1.3.19
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1022,7 +1022,7 @@ var openaiChatChunkSchema = import_zod2.z.union([
|
|
|
1022
1022
|
import_zod2.z.object({
|
|
1023
1023
|
index: import_zod2.z.number(),
|
|
1024
1024
|
id: import_zod2.z.string().nullish(),
|
|
1025
|
-
type: import_zod2.z.literal("function").
|
|
1025
|
+
type: import_zod2.z.literal("function").nullish(),
|
|
1026
1026
|
function: import_zod2.z.object({
|
|
1027
1027
|
name: import_zod2.z.string().nullish(),
|
|
1028
1028
|
arguments: import_zod2.z.string().nullish()
|
|
@@ -1044,7 +1044,7 @@ var openaiChatChunkSchema = import_zod2.z.union([
|
|
|
1044
1044
|
})
|
|
1045
1045
|
).nullable()
|
|
1046
1046
|
}).nullish(),
|
|
1047
|
-
finish_reason: import_zod2.z.string().
|
|
1047
|
+
finish_reason: import_zod2.z.string().nullish(),
|
|
1048
1048
|
index: import_zod2.z.number()
|
|
1049
1049
|
})
|
|
1050
1050
|
),
|
|
@@ -1078,11 +1078,23 @@ var reasoningModels = {
|
|
|
1078
1078
|
"o1-preview-2024-09-12": {
|
|
1079
1079
|
systemMessageMode: "remove"
|
|
1080
1080
|
},
|
|
1081
|
+
o3: {
|
|
1082
|
+
systemMessageMode: "developer"
|
|
1083
|
+
},
|
|
1084
|
+
"o3-2025-04-16": {
|
|
1085
|
+
systemMessageMode: "developer"
|
|
1086
|
+
},
|
|
1081
1087
|
"o3-mini": {
|
|
1082
1088
|
systemMessageMode: "developer"
|
|
1083
1089
|
},
|
|
1084
1090
|
"o3-mini-2025-01-31": {
|
|
1085
1091
|
systemMessageMode: "developer"
|
|
1092
|
+
},
|
|
1093
|
+
"o4-mini": {
|
|
1094
|
+
systemMessageMode: "developer"
|
|
1095
|
+
},
|
|
1096
|
+
"o4-mini-2025-04-16": {
|
|
1097
|
+
systemMessageMode: "developer"
|
|
1086
1098
|
}
|
|
1087
1099
|
};
|
|
1088
1100
|
|