Skip to content

Commit

Permalink
fix: limit maxtokens to 4096 (maximum of gpt-4-vision-preview)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusschiesser committed Nov 13, 2023
1 parent cd57f41 commit 38d6154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/bot/bot-settings/model-config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const ModalConfigValidator = {
return x as ModelType;
},
maxTokens(x: number) {
return limitNumber(x, 0, 100000, 2000);
return limitNumber(x, 0, 4096, 2000);
},
temperature(x: number) {
return limitNumber(x, 0, 1, 1);
Expand Down

0 comments on commit 38d6154

Please sign in to comment.