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

This commit is contained in:
Xyfacai 2023-11-30 20:30:29 +08:00
parent ed22a202f7
commit f712b73c18

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) {