We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fcf45f4 + ac05573 commit 24299c1Copy full SHA for 24299c1
1 file changed
pkg/metrics/openai_recorder.go
@@ -29,6 +29,12 @@ func (rr *responseRecorder) WriteHeader(statusCode int) {
29
rr.ResponseWriter.WriteHeader(statusCode)
30
}
31
32
+func (rr *responseRecorder) Flush() {
33
+ if flusher, ok := rr.ResponseWriter.(http.Flusher); ok {
34
+ flusher.Flush()
35
+ }
36
+}
37
+
38
type RequestResponsePair struct {
39
ID string `json:"id"`
40
Model string `json:"model"`
0 commit comments