fixed bug for QWen response blank quotes

This commit is contained in:
RockYang
2024-04-19 10:30:02 +08:00
parent a0f464830f
commit 336a7d5b56
3 changed files with 15 additions and 9 deletions

View File

@@ -82,10 +82,11 @@ func (h *ChatHandler) sendQWenMessage(
continue
}
if strings.HasPrefix(line, "data:") {
content = line[5:]
if !strings.HasPrefix(line, "data:") {
continue
}
content = line[5:]
var resp qWenResp
if len(contents) == 0 { // 发送消息头
if !outPutStart {