Skip to content

Commit

Permalink
Merge pull request #120 from jackschedel/2.1.0
Browse files Browse the repository at this point in the history
tokencount using nickname not model
  • Loading branch information
jackschedel committed Feb 18, 2024
2 parents 264b1bf + 4c68178 commit ae8839d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/TokenCount/TokenCount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const TokenCount = React.memo(() => {
useEffect(() => {
if (!generating || updateOverride) {
setUpdateOverride(!generating);
setTokenCount(countTokens(messages, model.name));
setTokenCount(countTokens(messages, model.model));
}
}, [messages, generating]);

Expand Down

0 comments on commit ae8839d

Please sign in to comment.