feat(timeout): prevent Cloudflare 524 timeouts on long generations via SSE heartbeats and chunked keep-alives

This commit is contained in:
tyuXX 2026-11-03 17:55:26 +00:00
parent ba57e3e394
commit 0e83233715
7 changed files with 385 additions and 25 deletions

View file

@ -8,7 +8,7 @@
"start": "node dist/index.js",
"dev": "ts-node src/index.ts",
"watch": "tsc --watch",
"test": "API_PASSWORD=test_password ts-node test-revolver.ts && API_PASSWORD=test_password ts-node test-integration.ts"
"test": "API_PASSWORD=test_password ts-node test-revolver.ts && API_PASSWORD=test_password ts-node test-integration.ts && API_PASSWORD=test_password ts-node test-timeout-keepalive.ts"
},
"keywords": ["openai", "gemini", "api", "rotation"],
"author": "",