Support enterprise network support for self-hosted encodings (UPDATED v0.6.0) #238
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Enterprises with internal networking configurations may want to limit access to outside resources for enterprise applications. Currently,
tiktoken
requires network access toopenaipublic.blob.core.windows.net
to populate the plugin modules which is adequate for most public/individual applications, but can cause problems at the organizational level.To address this,
tiktoken
should support an environmental override for users who want to internally host their own encodings files.This PR adds the required environmental parameterization to the
tiktoken_ext
script and updates theREADME.md
to explain its usage.