fix max tokens

main
cogentapps 2023-07-04 18:59:27 +00:00
parent 359d3c6566
commit 2d95041970
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ export class ContextTrimmerPlugin extends Plugin<ContextTrimmerPluginOptions> {
}),
validate: (value, options) => {
const max = maxTokensByModel[options.getOption('parameters', 'model')] || 2048;
return value < max;
return value <= max;
},
displayInQuickSettings: {
name: "Max Tokens",