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

Loading with script tags doesn't work #12

Closed
baobabKoodaa opened this issue May 28, 2023 · 1 comment
Closed

Loading with script tags doesn't work #12

baobabKoodaa opened this issue May 28, 2023 · 1 comment
Labels

Comments

@baobabKoodaa
Copy link

The README says this should work:

<script src="https://unpkg.com/gpt-tokenizer"></script>

<script>
  // the package is now available as a global:
  const { encode, decode } = GPTTokenizer
</script>

When I try that, it fails because GPTTokenizer is undefined. There are no other errors in console.

@niieani niieani closed this as completed in 84887b4 Jun 1, 2023
@github-actions
Copy link

github-actions bot commented Jun 1, 2023

🎉 This issue has been resolved in version 2.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant