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

Add support for proxy servers #73

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Aug 26, 2024

  1. Add support for proxy servers

    Add `trust_env=True` so that AIOHTTP will use the proxy server defined in the environment, if any.
    
    If this is not done, the following import will result in a (long) timeout:
    
    ```from tokencost import calculate_prompt_cost, calculate_completion_cost```
    caramdache committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    b187384 View commit details
    Browse the repository at this point in the history