From 37f17ded60c12aa2582ee5d47b627812f927effe Mon Sep 17 00:00:00 2001 From: nai-degen Date: Sun, 10 Mar 2024 12:32:15 -0500 Subject: [PATCH] removes OpenAI max_tokens default as that isn't aligned with the real API --- src/shared/api-schemas/openai.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/api-schemas/openai.ts b/src/shared/api-schemas/openai.ts index 13adcf3..db5e543 100644 --- a/src/shared/api-schemas/openai.ts +++ b/src/shared/api-schemas/openai.ts @@ -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),