HTTPSConnectionPool(host=‘api.openai.com’, port=443)
HTTPSConnectionPool(host=‘api.openai.com’, port=443): Max retries exceeded with url: /v1/files/example_prepared.jsonl (Caused by NewConnectionError(‘<urllib3.connection.HTTPSConnection object at 0x7ff0aa0e9580>: Failed to establish a new connection: [Errno 101] Network is unreachable’))
解决方案:pip install urllib3==1.25.11
原因:以前 urllib3 其实并不支持 https 代理,也就是说代理服务器的地址虽然大家配置的是 https,但是一直都是悄无声息地就按照 http 连接的,刚好代理服务器确实也只支持 http,所以皆大欢喜。
现在 urllib3 要支持 https 代理了,那么既然配置代理是 https 就尝试用 https 的方式去连接,但是由于代理服务器其实只支持 http,所以没法处理请求,ssl 握手阶段就出错了。
You exceeded your current quota, please check your plan and billing details
如果是免费用户就是免费额度过期了or额度用完了