fix: remove printing invalid stream response

This commit is contained in:
ckt1031 2023-07-15 21:51:28 +08:00
parent 4e94c85a9a
commit f5f21dffd8

View File

@ -413,7 +413,7 @@ func relayTextHelper(c *gin.Context, relayMode int) *OpenAIErrorWithStatusCode {
for scanner.Scan() {
data := scanner.Text()
if len(data) < 6 { // must be something wrong!
common.SysError("invalid stream response: " + data)
// common.SysError("invalid stream response: " + data)
continue
}
// If data has event: event content inside, remove it, it can be prefix or inside the data