CC Stream 响应流中出现 error 时, 增加返回重试 (#86)

* 响应流中出现 error, 返回重试

* 响应流中出现 error, 返回重试
This commit is contained in:
刀刀
2025-12-30 10:48:55 +08:00
committed by GitHub
parent 942c3e1529
commit 0026e871f0
2 changed files with 9 additions and 1 deletions

View File

@@ -216,7 +216,7 @@ func (h *GatewayHandler) Messages(c *gin.Context) {
}
}
const maxAccountSwitches = 3
const maxAccountSwitches = 10
switchCount := 0
failedAccountIDs := make(map[int64]struct{})
lastFailoverStatus := 0