fix max tokens
parent
359d3c6566
commit
2d95041970
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue