Commit 67e17dcd by 1808837298@qq.com

fix: Ignore EOF errors in OpenAI stream scanner

parent 33d171bc
......@@ -158,7 +158,9 @@ func OaiStreamHandler(c *gin.Context, resp *http.Response, info *relaycommon.Rel
}
if err := scanner.Err(); err != nil {
common.LogError(c, "scanner error: "+err.Error())
if err != io.EOF {
common.LogError(c, "scanner error: "+err.Error())
}
}
common.SafeSendBool(stopChan, true)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment