def feed
import bend-kit-llm@0.13.0.1/sse.bend as Sseimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
34# Drops the lines already read, then adds chunk.
35def feed(r: Reader, chunk: Bytes.Bytes) -> Reader:
36 Reader{buf, +pos, +seen, cr, st} = r
37 feed.at(U32.is_zero(pos), buf, pos, seen, cr, st, chunk)