fixes logprobs schema validation for turbo instruct endpoint

This commit is contained in:
nai-degen 2024-01-24 14:31:10 -06:00
parent c7a351baa8
commit ad465be363
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ const OpenAIV1TextCompletionSchema = z
suffix: z.string().max(1000).optional(),
})
.strip()
.merge(OpenAIV1ChatCompletionSchema.omit({ messages: true }));
.merge(OpenAIV1ChatCompletionSchema.omit({ messages: true, logprobs: true }));
// https://platform.openai.com/docs/api-reference/images/create
const OpenAIV1ImagesGenerationSchema = z