adds support for requesting logprobs from OpenAI Chat Completions API
This commit is contained in:
parent
ba8b052b17
commit
c7a351baa8
|
@ -87,6 +87,8 @@ export const OpenAIV1ChatCompletionSchema = z
|
||||||
logit_bias: z.any().optional(),
|
logit_bias: z.any().optional(),
|
||||||
user: z.string().max(500).optional(),
|
user: z.string().max(500).optional(),
|
||||||
seed: z.number().int().optional(),
|
seed: z.number().int().optional(),
|
||||||
|
logprobs: z.boolean().optional().default(false),
|
||||||
|
top_logprobs: z.number().int().optional(),
|
||||||
})
|
})
|
||||||
.strip();
|
.strip();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue