Assemble interleaved token, done and error events into complete responses with a lazy generator that keeps only in-flight requests in memory.
Only a few problems are open while we find out which ones people actually want. This one opens when enough people ask for it.
Used once to tell you this problem opened, then deleted. Sending it also counts as asking for the problem.
Turn an iterator of arbitrary byte chunks into delimited messages, handling messages and multi-byte delimiters split across chunks.
Copy a file of any size in fixed-size chunks so memory stays flat, and refuse inputs that would destroy data.
Parse pipe-delimited inference logs, skip malformed lines, and report request counts, successes and average latency per model.
See all problems