diff --git a/app/src/plugins/trimmer.ts b/app/src/plugins/trimmer.ts index 9cdc8989..ecd1b919 100644 --- a/app/src/plugins/trimmer.ts +++ b/app/src/plugins/trimmer.ts @@ -31,7 +31,7 @@ export class ContextTrimmerPlugin extends Plugin { }), validate: (value, options) => { const max = maxTokensByModel[options.getOption('parameters', 'model')] || 2048; - return value < max; + return value <= max; }, displayInQuickSettings: { name: "Max Tokens",