fix: error NotifyRootUser #812

This commit is contained in:
1808837298@qq.com
2025-03-06 15:56:42 +08:00
parent 558e625a01
commit e3f9ef1894
2 changed files with 5 additions and 2 deletions

View File

@@ -15,10 +15,13 @@ import (
)
func StreamScannerHandler(c *gin.Context, resp *http.Response, info *relaycommon.RelayInfo, dataHandler func(data string) bool) {
if resp == nil {
return
}
defer resp.Body.Close()
streamingTimeout := time.Duration(constant.StreamingTimeout) * time.Second
if strings.HasPrefix(info.UpstreamModelName, "o1") || strings.HasPrefix(info.UpstreamModelName, "o3") {
// twice timeout for thinking model