fix: 如果还有数据,等待一会

This commit is contained in:
Xyfacai
2023-11-30 20:30:29 +08:00
parent 4f32c033ce
commit 7d2194f907
+1
View File
@@ -10,6 +10,7 @@ import (
"one-api/common" "one-api/common"
"strings" "strings"
"sync" "sync"
"time"
) )
func openaiStreamHandler(c *gin.Context, resp *http.Response, relayMode int) (*OpenAIErrorWithStatusCode, string) { func openaiStreamHandler(c *gin.Context, resp *http.Response, relayMode int) (*OpenAIErrorWithStatusCode, string) {