fix token slider

main
cogentapps 2023-07-04 09:44:21 +00:00
parent 2d42fbd94a
commit 359d3c6566
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ export class ContextTrimmerPlugin extends Plugin<ContextTrimmerPluginOptions> {
type: "slider", type: "slider",
min: 512, min: 512,
max: maxTokensByModel[options.getOption('parameters', 'model')] || 2048, max: maxTokensByModel[options.getOption('parameters', 'model')] || 2048,
step: 512, step: 64,
}), }),
validate: (value, options) => { validate: (value, options) => {
const max = maxTokensByModel[options.getOption('parameters', 'model')] || 2048; const max = maxTokensByModel[options.getOption('parameters', 'model')] || 2048;