feat: 添加流模式下的SSE保活机制 #945

This commit is contained in:
CaIon committed 2025-04-14 19:40:23 +08:00
1 parent da86db0d46
commit e3b262da1d
8 files changed
+136 -31

No files matched your search

-1
View File
@@ -141,7 +141,6 @@ func OaiStreamHandler(c *gin.Context, resp *http.Response, info *relaycommon.Rel
if err != nil {
common.SysError("error handling stream format: " + err.Error())
}
info.SetFirstResponseTime()
}
lastStreamData = data
streamItems = append(streamItems, data)