removes OpenAI max_tokens default as that isn't aligned with the real API
This commit is contained in:
parent
96b6ea9568
commit
37f17ded60
|
@ -52,7 +52,7 @@ export const OpenAIV1ChatCompletionSchema = z
|
|||
.number()
|
||||
.int()
|
||||
.nullish()
|
||||
.default(16)
|
||||
.default(OPENAI_OUTPUT_MAX)
|
||||
.transform((v) => Math.min(v ?? OPENAI_OUTPUT_MAX, OPENAI_OUTPUT_MAX)),
|
||||
frequency_penalty: z.number().optional().default(0),
|
||||
presence_penalty: z.number().optional().default(0),
|
||||
|
|
Loading…
Reference in New Issue