@ai-sdk/openai 1.3.20 → 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/dist/index.mjs CHANGED
@@ -1012,7 +1012,7 @@ var openaiChatChunkSchema = z2.union([
1012
1012
  z2.object({
1013
1013
  index: z2.number(),
1014
1014
  id: z2.string().nullish(),
1015
- type: z2.literal("function").optional(),
1015
+ type: z2.literal("function").nullish(),
1016
1016
  function: z2.object({
1017
1017
  name: z2.string().nullish(),
1018
1018
  arguments: z2.string().nullish()
@@ -1034,7 +1034,7 @@ var openaiChatChunkSchema = z2.union([
1034
1034
  })
1035
1035
  ).nullable()
1036
1036
  }).nullish(),
1037
- finish_reason: z2.string().nullable().optional(),
1037
+ finish_reason: z2.string().nullish(),
1038
1038
  index: z2.number()
1039
1039
  })
1040
1040
  ),