You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’d like to request a feature that allows passing a custom HTTP client instance to tiktoken, rather than relying on the internal default client.
Motivation
In some environments, it’s necessary to use a custom HTTP client — for example, when the system must connect through a proxy or use a specific SSL certificate for verification. Currently, tiktoken doesn’t expose a way to inject a pre-configured client.