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

Unable to route GET requests through proxy #259

Open
aevilevitch opened this issue Feb 15, 2024 · 2 comments
Open

Unable to route GET requests through proxy #259

aevilevitch opened this issue Feb 15, 2024 · 2 comments

Comments

@aevilevitch
Copy link

I need to be able to call tiktoken in an environment where outbound traffic needs to be routed through a specific proxy. This is not possible with the current implementation of Tiktoken. One solution would be if read_file function in load.py would accept a session arg so the end user can pass a session with proxy.

@Twilightaaa
Copy link

same error, need some help!

@ThomasBury
Copy link

Ideally,

def load_tiktoken_bpe(
should allow passing headers, proxies, verification, and other keyword arguments (kwargs) as documented in requests.  

However, setting "offline" usage might be a better option for production use, but still requires an initial download.

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

No branches or pull requests

3 participants