Controlling randomness
Settings sent with a request change how the model samples its output. The best known is temperature. Raise it for more random, varied output, which suits brainstorming a marketing slogan. Lower it for more focused, predictable output, which suits writing a product specification. Top_p is a second setting that also influences randomness, though by a different method, and the usual advice is to adjust only one of the two at a time. Examples placed in a prompt (few-shot examples) steer the reply to that one request and do not permanently alter the model.