Skip to content

Commit

Permalink
refactor(Conversation): changed max tokens to 2^32-1
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfrankz committed Sep 5, 2024
1 parent e47e0c0 commit e26293d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ const commonOptionsFormSchema = z.object({
message: 'Only two decimal places are supported',
}
),
maxTokens: z.coerce.number().int().min(1).max(65535).optional(),
maxTokens: z.coerce
.number()
.int()
.min(1)
.max(2 ** 32 - 1)
.optional(),
// n: z.coerce.number().int().min(1).max(128).optional().default(1),
presencePenalty: z.coerce
.number()
Expand Down

0 comments on commit e26293d

Please # to comment.