removes logprobs default value since it breaks gpt-4-vision

This commit is contained in:
nai-degen 2024-01-27 12:19:24 -06:00
parent 37ca98ad30
commit e871b8ecf1
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ export const OpenAIV1ChatCompletionSchema = z
// Be warned that Azure OpenAI combines these two into a single field.
// It's the only deviation from the OpenAI API that I'm aware of so I have
// special cased it in `addAzureKey` rather than expecting clients to do it.
logprobs: z.boolean().optional().default(false),
logprobs: z.boolean().optional(),
top_logprobs: z.number().int().optional(),
// Quickly adding some newer tool usage params, not tested. They will be
// passed through to the API as-is.