StreamingDecoder
__init__
__init__(self, /, *args, **kwargs)
Initialize self. See help(type(self)) for accurate signature.
finish
finishfinish(self) -> str
finish(self) -> str
Flush everything not yet emitted; the decoder resets, reusable for a fresh stream.
push
pushpush(self, token_id: int) -> str
push(self, token_id: int) -> str
Append one generated id; returns the newly-stable text (often empty until a boundary lands).