openai / tiktoken

tiktoken is a fast BPE tokeniser for use with OpenAI's models.
MIT License
12.52k stars 856 forks source link

Remove dependency on requests #271

Open tristan-jl opened 8 months ago

tristan-jl commented 8 months ago

This PR swaps requests for Python's built-in urllib.request library, reducing the library size a decent amount.

Would you consider a PR doing something like this? Happy to make alterations.