Comments (2)
Hi @gablabelle! Thanks for the contribution. I've tried to use the new App Router as well, but it does seem like there's some upstream issue with React Server Components (RSC) and NextJS implementation which does not allow importing WASM modules / the WASM package of tiktoken
.
One possible solution would be to replace tiktoken
with js-tiktoken
, if that's needed, but I'm still keen on experimenting with WASM and RSC 🙂
from tiktokenizer.
Hi @gablabelle! Thanks for the contribution. I've tried to use the new App Router as well, but it does seem like there's some upstream issue with React Server Components (RSC) and NextJS implementation which does not allow importing WASM modules / the WASM package of
tiktoken
.One possible solution would be to replace
tiktoken
withjs-tiktoken
, if that's needed, but I'm still keen on experimenting with WASM and RSC 🙂
I've since migrated to js-tiktoken and it works! 👍🏽
from tiktokenizer.
Related Issues (16)
- Quick suggestions HOT 1
- I see in your demo that I can use a custom name for a message. (How) Is that also possible in OpenAI's API? HOT 1
- [bug] When I use a custom name and then change my mind and try to use one of the default ones, it doesn't update in the textarea below
- Why does the tiktokenizer demo output completely different token numbers than the actual npm package? HOT 3
- Mind if the OpenAI Cookbook repo points to your Tiktokenizer app? HOT 3
- How can I get the correct output at the edge? HOT 1
- Add new OpenAI models HOT 1
- token count is inconsistent with OpenAI tokenizer HOT 1
- changing tokenizer resets the textarea
- TokenViewer shows "replacement characters" when entering CJK characters HOT 1
- TOKENS 切割功能
- Add new `o200k_base` OpenAi encoding for `gpt-4o` HOT 1
- Tweak Request: Don't clear prompt textbox when switching models. HOT 4
- Make a Chrome extension for the ChatGPT website that counts number of tokens in input HOT 1
- Can you add a function to `tiktoken` that automatically adds special characters to chat messages? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tiktokenizer.