Closed winston-stripe closed 1 year ago
Actually, I think setting the environment variable to use cache is a better approach than embedding it. However, it's true that using cache can be unfriendly during the build and deployment. Thank you for your opinion. I will try to find a better and easier solution.
Thank you for your inspiration. Now we can accept custom BPE loaders.
Thank you!
Merging the recent improvements of
main
into theembed
version.As an aside, it would be neat if there was some way in the normal package to provide the offline assets on init or something (e.g. having
tiktoken-go
andtiktoken-go/assets/go.mod
) to avoid any weird constraints whentiktoken
is included as a dependency by something else and we can't necessarily import the embed version of the library.e.g. something like
tiktoken.InitWithOfflineData(tiktoken_offline.Data())
🤷Thanks!