Closed react-universe closed 1 year ago
Try
import GPT3Tokenizer from 'gpt3-tokenizer';
instead of
import { GPT3Tokenizer } from 'gpt3-tokenizer';
Just checked the entry point of the code and it is in fact a default import. Will update the README soon!
I am getting this error after implementation TypeError: gpt3_tokenizer__WEBPACK_IMPORTED_MODULE_3__.GPT3Tokenizer is not a constructor