01Chapter 1: How a model produces text one token at a timeAssume you understand basic HTTP requests, JSON, Python or JavaScript, asynchronous code, and the idea of an LLM token. A token is a small piece of text, such as a word, part of a word, or punctuation mark.2 min read
02Chapter 2: Reading delta eventsAssume basic HTTP, JSON, Python, JavaScript, asynchronous programming, and LLM tokens. A streamed LLM response usually contains small updates called deltas. Each delta describes what changed instead of repeating the entire message.1 min read
03Chapter 3: Rendering partial output in the UIAssume basic HTTP, JSON, JavaScript promises, and LLM API requests. A streamed response arrives as small text deltas. The UI should append each delta immediately instead of waiting for the complete message.1 min read