logoalt Hacker News

OpenAI: Migrating to HTTPX2

76 pointsby toshtoday at 11:51 AM37 commentsview on HN

Comments

simonwtoday at 12:24 PM

Anthropic made the same change a few weeks after OpenAI did: https://github.com/anthropics/anthropic-sdk-python/releases/...

The problem with httpx as a dependency is that it's currently working towards a 1.0 release which will be full of breaking changes.

The httpx2 project is essentially a fork that promises not to break the existing API, which makes it a more stable dependency to build against.

I wrote a pretty long comment about my concerns for the breaking 1.0 version last year - https://github.com/encode/httpx/discussions/3344#discussionc... - in that comment I recommended the HTTPX project release their 1.0 as a package called httpx2 instead, but a year later we now have an httpx2 (released by a different maintainer) that keeps the old API.

show 7 replies
mrtksntoday at 1:59 PM

Well, the client side of the AI chat sucks for me lately. Both ChatGPT and Gemini will say that the connection was lost or there’s a problem with the page and will force me to reload and send the promt again. Especially Gemini is horrible, this starts happening just after the second message. I dread using through the browser both. I haven’t investigated why this happens but maybe this change will come with an improvement.

ZeroCool2utoday at 1:57 PM

The requests packages fundamental API is good enough and is now maintained by the PSF. I don't understand why OpenAI and Anthropic don't just throw some $$$ to the PSF for focused improvements and expansion of it.

fsutstoday at 1:49 PM

Why is everyone so slow to move to http3?

londons_exploretoday at 12:16 PM

There seems to be a bunch of downsides mentioned...

But what are the upsides of this change?

show 1 reply
toshtoday at 11:52 AM

nb: operating system TLS trust store is used now (instead of certifi)

show 2 replies
ledoncooltoday at 12:17 PM

Wow, finally...

preetham_rangutoday at 1:09 PM

[flagged]

CurbStompertoday at 1:35 PM

[dead]