Skip to content

Commit 70d3ac7

Browse files
committed
🐞 fix(openrouter): 适应openrouter注释问题
1 parent 88a1a9c commit 70d3ac7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

chat.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@ func (client Client) ChatStream(model string, messages []Message, during func(st
186186
if _res == "" {
187187
continue
188188
}
189+
if strings.HasPrefix(_res, ":") {
190+
continue
191+
}
189192
if _res == "data: [DONE]" {
190193
break
191194
}

0 commit comments

Comments
 (0)