Skip to content

Commit

Permalink
fix max tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
cogentapps committed Jul 4, 2023
1 parent 359d3c6 commit 2d95041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/plugins/trimmer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2d95041

Please sign in to comment.