返回 AI 资讯
社区讨论LinuxDo 最新

09-15 Codex 调用 Gemini 报 429 (Resource has been exhausted) 问题(newapi、dsh调用均正常)

通过 Codex - ccswitch - NewAPI - CLIProxyAPI (CPA) - Google Antigravity (Gemini) 链路调用模型时,Codex 持续报错: codex报错: newapi正常: dsh正常: 根因:Google Antigravity 上游拦截了 Codex 的系统提示词(System Instruction)。 通过抓包对比测试确认: Codex 会在每个请求的 instructions 中固定注入开头:"You are Codex, a coding…

内容摘要

作者:#Dorian7Alden 板块:#开发调优 通过 Codex -> ccswitch -> NewAPI -> CLIProxyAPI (CPA) -> Google Antigravity (Gemini) 链路调用模型时,Codex 持续报错: codex报错: newapi正常: dsh正常: 根因:Google Antigravity 上游拦截了 Codex 的系统提示词(System Instruction)。 通过抓包对比测试确认: Codex 会在每个请求的 instructions 中固定注入开头:"You are Codex, a coding agent based on GPT-5..."。 Google 上游风控网关对 systemInstruction 进行了特征匹配,一旦检测到该组合词,就会伪装返回 429 RESOURCE_EXHAUSTED 假限流。 如果在网页端作为普通用户消息(role: user)发送相同的句子,则不会触发拦截(返回 200 OK)。 解决方案:利用 CLIProxyAPI (CPA) 原生支持的零宽字符隐式混淆功能,绕过上游对 System Prompt 的静态特征检测。 测试:

资讯来源

LinuxDo

原文链接

打开原文