It predicts the next word
An LLM writes one word at a time. For every possible next word it works out a probability, based on patterns in the text it has read, then picks one. A setting called temperature controls how adventurous that pick is: low temperature chooses the likeliest word, high temperature gives unusual words a chance. Play Guess the Next Word.