botisan-ai/gpt3-tokenizer

Cannot create an instance of an abstract class (Typescript)

Closed this issue · 1 comments

dluc commented

image

image

The docs should say GPT3NodeTokenizer right?

@dluc So if you notice index.ts in source, GPT3NodeTokenizer is a default export, so you can just name it to whatever you like during import.

import GPT3Tokenizer from 'gpt3-tokenizer';

Hope this helps!