fix max tokens

This commit is contained in:
cogentapps
2023-07-04 18:59:27 +00:00
parent 359d3c6566
commit 2d95041970

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",