removes OpenAI max_tokens default as that isn't aligned with the real API

This commit is contained in:
nai-degen 2024-03-10 12:32:15 -05:00
parent 96b6ea9568
commit 37f17ded60
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ export const OpenAIV1ChatCompletionSchema = z
.number() .number()
.int() .int()
.nullish() .nullish()
.default(16) .default(OPENAI_OUTPUT_MAX)
.transform((v) => Math.min(v ?? OPENAI_OUTPUT_MAX, OPENAI_OUTPUT_MAX)), .transform((v) => Math.min(v ?? OPENAI_OUTPUT_MAX, OPENAI_OUTPUT_MAX)),
frequency_penalty: z.number().optional().default(0), frequency_penalty: z.number().optional().default(0),
presence_penalty: z.number().optional().default(0), presence_penalty: z.number().optional().default(0),