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

ENCODER = tiktoken.encoding_for_model("gpt-4o") falied #114

Closed
YDS854394028 opened this issue Jan 2, 2025 · 2 comments
Closed

ENCODER = tiktoken.encoding_for_model("gpt-4o") falied #114

YDS854394028 opened this issue Jan 2, 2025 · 2 comments

Comments

@YDS854394028
Copy link

ENCODER = tiktoken.encoding_for_model("gpt-4o")

requests.exceptions.ProxyError: HTTPSConnectionPool(host='openaipublic.blob.core.windows.net', port=443): Max retries exceeded with url: /encodings/o200k_base.tiktoken (Caused by ProxyError('Unable to connect to proxy. Your proxy appears to only use HTTP and not HTTPS, try changing your proxy URL to be HTTP. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#https-proxy-error-http-proxy', SSLError(SSLError(1, '[SSL] record layer failure (_ssl.c:997)'))))

@rangehow
Copy link
Collaborator

rangehow commented Jan 2, 2025

Network problem, please check your proxy settings.
On Linux:

export https_proxy=http://127.0.0.1:[port VPN worked on]

@garrettmorse
Copy link

My enterprise blocks that URL, so I found and followed this to be able to run tiktoken "offline"...
https://stackoverflow.com/questions/76106366/how-to-use-tiktoken-in-offline-mode-computer

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