Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
fix(codex): prevent unexpected protocol leakage and fabricated instructions on bare chat completion requests without tools (#1686)
diegosouzapw905b7555c209
diff --git a/open-sse/executors/codex.ts b/open-sse/executors/codex.tsindex 67793ffac0..ff9bd55489 100644--- a/open-sse/executors/codex.ts+++ b/open-sse/executors/codex.ts@@ -1002,9 +1002,11 @@ export class CodexExecutor extends BaseExecutor {!body.instructions ||(typeof body.instructions === "string" && body.instructions.trim() === "")) {- body.instructions = hasTools- ? CODEX_DEFAULT_INSTRUCTIONS- : "You are a helpful AI assistant.";+ if (hasTools) {+ body.instructions = CODEX_DEFAULT_INSTRUCTIONS;+ } else {+ delete body.instructions;+ }}}