ianshaw
2a0758bdfe
feat(gateway): 添加流超时处理机制
- 添加 StreamTimeoutSettings 配置结构体和系统设置
- 实现 TimeoutCounterCache Redis 计数器用于累计超时次数
- 在 RateLimitService 添加 HandleStreamTimeout 方法
- 在 gateway_service、openai_gateway_service、antigravity_gateway_service 中调用超时处理
- 添加后端 API 端点 GET/PUT /admin/settings/stream-timeout
- 添加前端配置界面到系统设置页面
- 支持配置:启用开关、超时阈值、处理方式、暂停时长、触发阈值、阈值窗口
默认配置:
- 启用:true
- 超时阈值:60秒
- 处理方式:临时不可调度
- 暂停时长:5分钟
- 触发阈值:3次
- 阈值窗口:10分钟
2026-01-11 21:54:52 -08:00
..
2026-01-11 21:54:52 -08:00
2026-01-11 21:54:52 -08:00
2026-01-09 21:59:32 +08:00
2026-01-10 13:14:35 +08:00
2026-01-09 18:26:32 +08:00
2026-01-09 19:32:06 +08:00
2026-01-11 10:59:01 +08:00
2026-01-06 20:31:40 +08:00
2026-01-08 23:07:00 +08:00
2025-12-28 17:48:52 +08:00
2026-01-11 10:59:01 +08:00
2026-01-11 11:41:10 +08:00
2026-01-11 23:15:01 +08:00
2026-01-11 23:00:31 +08:00
2025-12-26 16:45:40 +08:00
2025-12-31 08:50:12 +08:00
2025-12-31 08:50:12 +08:00
2026-01-10 18:37:44 +08:00
2025-12-26 16:45:40 +08:00
2026-01-05 20:43:03 -06:00
2026-01-01 18:59:38 +08:00
2026-01-11 11:41:10 +08:00