admin 发表于 6 天前

使用Codex时遇到:■ stream disconnected before completion: An error... 解决办法

■ stream disconnected before completion: An error occurred while processing your request. You can retry your request, or
contact us through our help center at help.openai.com if the error persists. Please include the request ID 9613ce04-
50f0-413c-8a9e-1f5ffbf20bbd in your message.

买了一个月的ChatGPT的Plus会员玩。和别人拿ChatGPT当知心大姐不同,我拿到手第一时间就去研究Codex Agent去了。结果根本用不了,老是报错stream disconnected before completion: stream closed before response.completed。上网搜了一圈也没找到解决办法。结果我在看我的.bashrc时突然发现,我用的Qwen Code在 .bashrc 里使用的环境变量是OpenAI的。而我把这个环境变量给配置到连接OpenRouter去了。于是我加上了下面这段


然后运行source ~/.bashrc ,Codex立刻就好了。如果你在使用Codex的时候遇到和我一样的问题,不妨echo 一下上面三个环境变量看看是不是配置到别的平台上去了。

页: [1]
查看完整版本: 使用Codex时遇到:■ stream disconnected before completion: An error... 解决办法