01Chapter 1: What a chat message is: role plus contentThis chapter assumes basic Python or JavaScript syntax, lists and dictionaries or arrays and objects, JSON, and a general idea of how a language model API works.1 min read
03Chapter 3: Building a multi-turn conversation loopAssume you know Python lists and dictionaries, JSON, and the basics of calling an API. A multi-turn conversation is built by sending the earlier messages again with each new request. Most chat APIs do not remember previous requests automatically.1 min read