Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add multi-language bindings for tiktoken using polywrap wasm wrapper #36

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Niraj-Kamdar
Copy link

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.

@Niraj-Kamdar Niraj-Kamdar marked this pull request as draft September 8, 2023 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant