mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-03-30 00:33:35 +00:00
Merge pull request #971 from daheli/fix/increase-stream-watchdog-timeout [skip ci]
fix: increase stream watchdog timeout from 45s to 90s
This commit is contained in:
@@ -2326,7 +2326,7 @@ async function handleAnthropicMessagesToGemini(req, res, { vendor, baseModel })
|
||||
// [大东的 2.0 补丁 - 修复版] 活跃度看门狗 (Watchdog)
|
||||
// ========================================================================
|
||||
let activityTimeout = null
|
||||
const STREAM_ACTIVITY_TIMEOUT_MS = 45000 // 45秒无数据视为卡死
|
||||
const STREAM_ACTIVITY_TIMEOUT_MS = 90000 // 90秒无数据视为卡死
|
||||
|
||||
const resetActivityTimeout = () => {
|
||||
if (activityTimeout) {
|
||||
|
||||
Reference in New Issue
Block a user