@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.
@@ -1026,7 +1026,7 @@ var openaiChatChunkSchema = import_zod2.z.union([
1026
1026
  import_zod2.z.object({
1027
1027
  index: import_zod2.z.number(),
1028
1028
  id: import_zod2.z.string().nullish(),
1029
- type: import_zod2.z.literal("function").optional(),
1029
+ type: import_zod2.z.literal("function").nullish(),
1030
1030
  function: import_zod2.z.object({
1031
1031
  name: import_zod2.z.string().nullish(),
1032
1032
  arguments: import_zod2.z.string().nullish()
@@ -1048,7 +1048,7 @@ var openaiChatChunkSchema = import_zod2.z.union([
1048
1048
  })
1049
1049
  ).nullable()
1050
1050
  }).nullish(),
1051
- finish_reason: import_zod2.z.string().nullable().optional(),
1051
+ finish_reason: import_zod2.z.string().nullish(),
1052
1052
  index: import_zod2.z.number()
1053
1053
  })
1054
1054
  ),
@@ -1082,11 +1082,23 @@ var reasoningModels = {
1082
1082
  "o1-preview-2024-09-12": {
1083
1083
  systemMessageMode: "remove"
1084
1084
  },
1085
+ o3: {
1086
+ systemMessageMode: "developer"
1087
+ },
1088
+ "o3-2025-04-16": {
1089
+ systemMessageMode: "developer"
1090
+ },
1085
1091
  "o3-mini": {
1086
1092
  systemMessageMode: "developer"
1087
1093
  },
1088
1094
  "o3-mini-2025-01-31": {
1089
1095
  systemMessageMode: "developer"
1096
+ },
1097
+ "o4-mini": {
1098
+ systemMessageMode: "developer"
1099
+ },
1100
+ "o4-mini-2025-04-16": {
1101
+ systemMessageMode: "developer"
1090
1102
  }
1091
1103
  };
1092
1104