@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.
@@ -1006,7 +1006,7 @@ var openaiChatChunkSchema = z2.union([
1006
1006
  z2.object({
1007
1007
  index: z2.number(),
1008
1008
  id: z2.string().nullish(),
1009
- type: z2.literal("function").optional(),
1009
+ type: z2.literal("function").nullish(),
1010
1010
  function: z2.object({
1011
1011
  name: z2.string().nullish(),
1012
1012
  arguments: z2.string().nullish()
@@ -1028,7 +1028,7 @@ var openaiChatChunkSchema = z2.union([
1028
1028
  })
1029
1029
  ).nullable()
1030
1030
  }).nullish(),
1031
- finish_reason: z2.string().nullable().optional(),
1031
+ finish_reason: z2.string().nullish(),
1032
1032
  index: z2.number()
1033
1033
  })
1034
1034
  ),
@@ -1062,11 +1062,23 @@ var reasoningModels = {
1062
1062
  "o1-preview-2024-09-12": {
1063
1063
  systemMessageMode: "remove"
1064
1064
  },
1065
+ o3: {
1066
+ systemMessageMode: "developer"
1067
+ },
1068
+ "o3-2025-04-16": {
1069
+ systemMessageMode: "developer"
1070
+ },
1065
1071
  "o3-mini": {
1066
1072
  systemMessageMode: "developer"
1067
1073
  },
1068
1074
  "o3-mini-2025-01-31": {
1069
1075
  systemMessageMode: "developer"
1076
+ },
1077
+ "o4-mini": {
1078
+ systemMessageMode: "developer"
1079
+ },
1080
+ "o4-mini-2025-04-16": {
1081
+ systemMessageMode: "developer"
1070
1082
  }
1071
1083
  };
1072
1084