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
{{ message }}
Repository navigation
Drop-in replacement for proxies argument in (httpx.post) #3424
Since version 0.28, the proxies argument is fully deprecated and removed. #2879 indicates that we should use mounts if we have multiple schemas to be proxied over. However, httpx.post doesn't have mounts argument.
Is there a way to
use the new proxy argument, specifying both http & https schemas?
add an argument mounts to httpx.post and relevant methods?
Removing an argument & doing a minor update is criminal. Lost all the day yesterday to figure out why opanai library was not working in the new build for the production environment...
Reacted by Nuno André, selcukzd and Abdelkarim Fatih
Can I please re-open the issue? I meant, is there a way not explicitly creating Client() and also able to use the functionality of the previous proxies argument?
Removing an argument & doing a minor update is criminal. Lost all the day yesterday to figure out why opanai library was not working in the new build for the production environment...
This was marked as deprecated in 0.26.0 version itself.
Activity
Lroemon commentedon Nov 29, 2024
Removing an argument & doing a minor update is criminal. Lost all the day yesterday to figure out why opanai library was not working in the new build for the production environment...
lovelydinosaur commentedon Nov 29, 2024
@Lroemon Do you know what version range of httpx the openai client currently pinned against?
lovelydinosaur commentedon Nov 29, 2024
@qqaatw 👉
client = httpx.Client()qqaatw commentedon Nov 29, 2024
Can I please re-open the issue? I meant, is there a way not explicitly creating
Client()and also able to use the functionality of the previousproxiesargument?lovelydinosaur commentedon Nov 29, 2024
Appreciate the clear question.
There is not. You’ll need an explicit client instance to do that.
qqaatw commentedon Nov 29, 2024
I see, thanks for the clarification. If there is any chance, I would propose to add a new mounts argument to methods like
https.post.ChillarAnand commentedon Nov 29, 2024
This was marked as deprecated in 0.26.0 version itself.
https://github.com/encode/httpx/releases/tag/0.26.0
dgellow commentedon Dec 2, 2024
@Lroemon openai-python has been updated to support httpx v0.28.0 with the release v1.55.3