Merge pull request #5202 from chezsmithy/fix-yaml-reasoning-caching
fix(config-yaml): prompt caching and reasoning
This commit is contained in:
commit
cfef134344
1 changed files with 9 additions and 0 deletions
|
|
@ -47,9 +47,17 @@ export const completionOptionsSchema = z.object({
|
|||
topK: z.number().optional(),
|
||||
stop: z.array(z.string()).optional(),
|
||||
n: z.number().optional(),
|
||||
reasoning: z.boolean().optional(),
|
||||
reasoningBudgetTokens: z.number().optional(),
|
||||
});
|
||||
export type CompletionOptions = z.infer<typeof completionOptionsSchema>;
|
||||
|
||||
export const cacheBehaviorSchema = z.object({
|
||||
cacheSystemMessage: z.boolean().optional(),
|
||||
cacheConversation: z.boolean().optional(),
|
||||
})
|
||||
export type CacheBehavior = z.infer<typeof cacheBehaviorSchema>;
|
||||
|
||||
export const embedOptionsSchema = z.object({
|
||||
maxChunkSize: z.number().optional(),
|
||||
maxBatchSize: z.number().optional(),
|
||||
|
|
@ -77,6 +85,7 @@ const baseModelFields = {
|
|||
roles: modelRolesSchema.array().optional(),
|
||||
capabilities: modelCapabilitySchema.array().optional(),
|
||||
defaultCompletionOptions: completionOptionsSchema.optional(),
|
||||
cacheBehavior: cacheBehaviorSchema.optional(),
|
||||
requestOptions: requestOptionsSchema.optional(),
|
||||
embedOptions: embedOptionsSchema.optional(),
|
||||
chatOptions: chatOptionsSchema.optional(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue