The plain HTTP request was sent to HTTPS port: error behind corporate proxy

There is an open feature request for socks5 proxy support that mentions openai specifically. I didn’t see anything that would help you but it might be worth up-voting, and it might confirm your suspicions about what isn’t working.