I got the same error message with an older version of OpenAI (1.11.1). The issue was caused by recent changes in the httpx package.
httpx
Downgrading to httpx==0.27.0 fixed this for me.
httpx==0.27.0