-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Use of proxies kwarg in httpx==0.28.0 #1902
Comments
This is causing a fresh install of openai to be broken currently. Here's a reproducer: (Dockerfile)
Gives:
|
Having this issue too, with the synchronous client. A temporary fix I've found is to hardcode the Just adding |
Hi, thank you for the reports, we (@stainless-api) are actively working on a fix. Edit: we have a patch under review right now and expect to push it to this repo in a few minutes |
Thanks for the reports, this will be fixed shortly |
Should be fixed once #1905 gets merged (all the credits to the amazing @RobertCraigie for the quick fix) |
Sorry for the delay, we're trying to get a hold of someone with the credentials to publish a new release. |
Fixed by #1905 |
@dgellow @RobertCraigie In the pyproject.toml file, the httpx version is defined as |
Hi @vvaezian, thanks for pointing that out. I tend to agree, though I'm not sure how strict the version range should be in this specific context. That's something we identified and will be discussing today as part of our internal post-mortem for that httpx v0.28.0 incident. I expect we will share an update later today in this thread. |
@dgellow @RobertCraigie FYI it looks like we need the same fix in the CLI: openai-python/src/openai/cli/_cli.py Lines 179 to 182 in 534d6c5
|
ah good catch thank you! |
@vvaezian Following up on your question, we decided against narrowing the version constraints. Instead we decided to invest into improving our testing setup to be sure we have coverage for nightly/dev versions of httpx (and other core dependencies), before they are released publicly. |
include openai library to address issue openai/openai-python#1902
Confirm this is an issue with the Python library and not an underlying OpenAI API
Describe the bug
httpx version 0.28.0 removes the deprecated proxies argument; this argument is hardcoded in the library at the moment.
To Reproduce
Code snippets
OS
macOS
Python version
Python 3.10.12
Library version
openai-1.55.2
The text was updated successfully, but these errors were encountered: