fix(env): update STREAMING_TIMEOUT default value to 300 seconds

This commit is contained in:
CaIon
2025-08-12 19:58:04 +08:00
parent e77effaf8b
commit 17bab355e4
6 changed files with 5 additions and 9 deletions

View File

@@ -39,10 +39,6 @@ func StreamScannerHandler(c *gin.Context, resp *http.Response, info *relaycommon
}()
streamingTimeout := time.Duration(constant.StreamingTimeout) * time.Second
if strings.HasPrefix(info.UpstreamModelName, "o") {
// twice timeout for thinking model
streamingTimeout *= 2
}
var (
stopChan = make(chan bool, 3) // 增加缓冲区避免阻塞