Add strict 502 mode and upstream retry handling for streaming responses

This commit is contained in:
nonononull
2026-06-26 11:24:00 +08:00
parent 9cc6bc9b31
commit d2e1acbaf4
7 changed files with 2997 additions and 2817 deletions
+12 -12
View File
@@ -1,12 +1,12 @@
{
"listen_host": "127.0.0.1",
"listen_port": 4610,
"upstream_base_url": "https://api.openai.com",
"request_body_limit_bytes": 10485760,
"endpoints": ["/responses", "/chat/completions", "/v1/responses", "/v1/chat/completions"],
"reasoning_equals": [516],
"non_stream_status_code": 502,
"stream_action": "disconnect",
"log_match": true,
"health_path": "/__codex_retry_gateway/health"
}
{
"listen_host": "127.0.0.1",
"listen_port": 4610,
"upstream_base_url": "https://api.openai.com",
"request_body_limit_bytes": 10485760,
"endpoints": ["/responses", "/chat/completions", "/v1/responses", "/v1/chat/completions"],
"reasoning_equals": [516],
"non_stream_status_code": 502,
"stream_action": "strict_502",
"log_match": true,
"health_path": "/__codex_retry_gateway/health"
}