Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 committed Feb 24, 2025
1 parent 646f592 commit c89e0f5
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions service/aiproxy/common/custom-event.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,15 @@ var (
func (r OpenAISSE) Render(w http.ResponseWriter) error {
r.WriteContentType(w)

w.Write(dataBytes)
w.Write(conv.StringToBytes(r.Data))
w.Write(nnBytes)
for _, bytes := range [][]byte{
dataBytes,
conv.StringToBytes(r.Data),
nnBytes,
} {
if _, err := w.Write(bytes); err != nil {
return err
}
}
return nil
}

Expand Down

0 comments on commit c89e0f5

Please sign in to comment.