能打开chatgpt官网,但codex连不上

佬们,如题,codex一直报这个错:stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses),能正常访问chatgpt,号子是正常的,是不是机场节点的问题?

开TUN模式,或者把这段添加到你电脑用户名下的.codex 文件夹下的.env,例如C:\Users\Administrator.codex.env
ip和端口记得换一下

HTTP_PROXY="http://192.168.16.13:7893"
HTTPS_PROXY="http://192.168.16.13:7893"
NO_PROXY="localhost,127.0.0.1"

不需要局域网 ip 吧,tz 是自己电脑上的直接用 127.0.0.1 就行了

比如 clash 是 http://127.0.0.1:7897

是放在.codex文件夹的哪个文件下啊

windows 我不知道,mac 是放到 ~/.codex/.env 里面去

豆包查了一下,应该是 C:\Users\你的用户名\.codex\.env

HTTP_PROXY=http://127.0.0.1:7897
HTTPS_PROXY=http://127.0.0.1:7897
ALL_PROXY=socks5://127.0.0.1:7897
NO_PROXY=localhost,127.0.0.1,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16

.env 文件下,刚才忘记写了
:rofl:

感谢,chat都没回答出来的问题,L站找到答案。