From 2d95041970683a3a6847bad0774acb8e20e91fb9 Mon Sep 17 00:00:00 2001 From: cogentapps <127109874+cogentapps@users.noreply.github.com> Date: Tue, 4 Jul 2023 18:59:27 +0000 Subject: [PATCH] fix max tokens --- app/src/plugins/trimmer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/plugins/trimmer.ts b/app/src/plugins/trimmer.ts index 9cdc898..ecd1b91 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",