nit: remove superfluous newline

already get one extra from the preceding `enc.Encode(ev)` call.
This commit is contained in:
Robert Hambrock 2023-05-21 13:42:56 +02:00
parent 36b1f53354
commit c47796d543
No known key found for this signature in database
GPG key ID: 9722A2F186201D91

View file

@ -346,8 +346,8 @@ func chatEndpoint(cm *ConfigMerger, debug bool, loader *model.ModelLoader, threa
enc := json.NewEncoder(&buf)
enc.Encode(ev)
fmt.Fprintf(w, "data: %v\n\n", buf.String())
log.Debug().Msgf("Sending chunk: %s", buf.String())
fmt.Fprintf(w, "data: %v\n", buf.String())
w.Flush()
}