feat(client): expand max streaming buffer size

This commit is contained in:
stainless-app[bot] 2025-07-09 11:45:10 +00:00
parent 391c482148
commit 76303e5106

View file

@ -29,7 +29,7 @@ func NewDecoder(res *http.Response) Decoder {
decoder = t(res.Body)
} else {
scn := bufio.NewScanner(res.Body)
scn.Buffer(nil, bufio.MaxScanTokenSize<<4)
scn.Buffer(nil, bufio.MaxScanTokenSize<<9)
decoder = &eventStreamDecoder{rc: res.Body, scn: scn}
}
return decoder