This PR introduces multi-language support for tiktoken-rs utilizing the Polywrap WASM toolchain.
Key points:
Facilitates efficient integration of tiktoken-rs in languages like Python and JavaScript.
Initial bindings provided for Python and TypeScript as a demonstration.
Performance note: Current default setup fetches some WASM dependencies at runtime, leading to potential delays. Embedding these can optimize performance.
Suggestion: Add support for loading .tiktoken files released by OpenAI, allowing runtime fetching and caching options for users.
With Polywrap, there's potential to expand support to Kotlin and Swift for mobile compatibility.
I'm eager to collaborate further to enhance the platform reach of this project.
This PR introduces multi-language support for
tiktoken-rs
utilizing the Polywrap WASM toolchain.Key points:
tiktoken-rs
in languages like Python and JavaScript..tiktoken
files released by OpenAI, allowing runtime fetching and caching options for users.I'm eager to collaborate further to enhance the platform reach of this project.