fix: mistral

This commit is contained in:
1808837298@qq.com
2025-02-22 16:29:48 +08:00
parent 27ea231d66
commit 88a2fec190
4 changed files with 13 additions and 14 deletions

View File

@@ -87,6 +87,9 @@ func OaiStreamHandler(c *gin.Context, resp *http.Response, info *relaycommon.Rel
info.SetFirstResponseTime()
ticker.Reset(time.Duration(constant.StreamingTimeout) * time.Second)
data := scanner.Text()
if common.DebugEnabled {
println(data)
}
if len(data) < 6 { // ignore blank line or wrong format
continue
}