dqbd / tiktoken

JS port and JS/WASM bindings for openai/tiktoken
MIT License
648 stars 49 forks source link

Is it reasonable to load and run on the client side ? #77

Closed MarArMar closed 8 months ago

MarArMar commented 8 months ago

This is more a question thant an issue,

Is this reasonable to load and run on a client side (browser) to check for token counts exceeding model limits for example ?

MarArMar commented 8 months ago

I ended up running another similar package

Vite told me it is much better to import the package asynchronously.