sudo cp /etc/hosts /tmp/hosts.bak
echo '127.0.0.1 chatgpt.com | sudo tee -a /etc/hosts >/dev/null
curl -sS -X POST http://127.0.0.1:3456/v1/chat/completions
-H 'Content-Type: application/json'
-H 'x-api-key: <PROXY_API_KEY>'
-d '{"model":"gpt-5.2","messages":[{"role":"user","content":"Reply exactly: fallback-ok"}],"stream":false}'
sudo cp /tmp/hosts.bak /etc/hosts
Created
February 13, 2026 22:48
-
-
Save AlexMikhalev/3380044f4704bf1151d2d22d26696f70 to your computer and use it in GitHub Desktop.
Simulate codex outage
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment