Skip to content

Commit c91f641

Browse files
committed
0.1.9
1 parent 99931f5 commit c91f641

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

qwen2api.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,11 +1175,8 @@ func handleStreamingRequest(w http.ResponseWriter, r *http.Request, apiReq APIRe
11751175
w.Write([]byte("data: " + string(roleChunk) + "\n\n"))
11761176
flusher.Flush()
11771177

1178-
// 用于去重的前一个内容
1179-
previousContent := ""
1180-
1181-
// 创建正则表达式来查找 data: 行
1182-
dataRegex := regexp.MustCompile(`(?m)^data: (.+)$`)
1178+
// 用于去重的前一个内容
1179+
previousContent := ""
11831180

11841181
// 持续读取响应
11851182
buffer := ""

0 commit comments

Comments
 (0)