Same model, same conversation, same token count, and a bill that is five times higher. The difference is a prefix that changes, a write premium nobody reads about, and a cost curve that grows faster than the loop.
Article archive
Browse every article on Invasikode — programming tutorials, AI exploration, and software architecture guides.
Streaming does not remove the wait, it moves it into a connection that now outlives the request. Four layers sit between the model and the browser, their idle timeouts do not agree, and the smallest one ends your stream.
The badge script printed the right name for the person who wrote it and the wrong name for everybody else. Slicing counts characters, and a name is words.
Three points walk into a loop and come out identical. The list was never copied three times; the name was. A tuple makes that bug impossible.
A de-duplication loop that works on clean data leaves four tags where there should be two. The bug is case, and the fix is a set.
A word counter dies the first time it meets a word twice. The fix is one line; what takes longer is knowing which of a dict's three lookups to reach for.