
最近新版 Codex App 對第三方 API 使用內(nèi)置 imagegen 技能增加了限制。具體表現(xiàn)是Codex 已經(jīng)執(zhí)行了生圖操作但生成的圖片不會(huì)正常顯示在客戶端中。經(jīng)過排查和分析我們已經(jīng)找到了兩種解決方法。方法一讓 Codex 自動(dòng)修改配置新建一個(gè) Codex 對話然后發(fā)送下面這段話幫我將 config.toml 中的 requires_openai_auth 修改為 false并在下方新增以下配置 http_headers { “x-openai-actor-authorization” “apikey.fun” }或者直接在config.toml中加入requires_openai_authfalsehttp_headers{x-openai-actor-authorizationapikey.fun}等待 Codex 修改完成后完全退出并重新啟動(dòng) Codex App。方法二使用一鍵配置腳本W(wǎng)indows 系統(tǒng)找到 PowerShell藍(lán)色圖標(biāo)右鍵選擇 以管理員身份運(yùn)行然后輸入irm https://apikey.fun/install/codex.ps1|iexmacOS / Linux / WSL 系統(tǒng)打開終端輸入curl-fsSLhttps://apikey.fun/install/codex.sh|sudobash腳本執(zhí)行完成后完全退出并重新啟動(dòng) Codex App配置即可生效。完成以上任意一種方法后第三方 API 即可在新版 Codex App 中正常調(diào)用內(nèi)置 imagegen 技能并在客戶端中輸出生成的圖片。Move-ItemC:\Users\fengjay01\Documents\CodexD:\A-Develop\AgentData\Codex\ProjectsNew-Item-ItemType Junction -PathC:\Users\fengjay01\Documents\Codex-TargetD:\A-Develop\AgentData\Codex\Projects