Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcampagnolitg committed Dec 6, 2024
1 parent 6f818eb commit f3683f7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/initTiktokenizer.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { countTokens } from '#llm/tokens';

// node_modules is read-only for the sophia user in prod, so download in the docker build
countTokens('hi').catch((err) => {
console.error('Failed to download tiktoken model');
console.error(err);
}).finally(() => console.log('Done'));
countTokens('hi')
.catch((err) => {
console.error('Failed to download tiktoken model');
console.error(err);
})
.finally(() => console.log('Done'));

0 comments on commit f3683f7

Please sign in to comment.