fix max tokens
This commit is contained in:
@@ -31,7 +31,7 @@ export class ContextTrimmerPlugin extends Plugin<ContextTrimmerPluginOptions> {
|
|||||||
}),
|
}),
|
||||||
validate: (value, options) => {
|
validate: (value, options) => {
|
||||||
const max = maxTokensByModel[options.getOption('parameters', 'model')] || 2048;
|
const max = maxTokensByModel[options.getOption('parameters', 'model')] || 2048;
|
||||||
return value < max;
|
return value <= max;
|
||||||
},
|
},
|
||||||
displayInQuickSettings: {
|
displayInQuickSettings: {
|
||||||
name: "Max Tokens",
|
name: "Max Tokens",
|
||||||
|
Reference in New Issue
Block a user