passdrill
AI & LLM Engineering · Building with LLM APIs · Card 006/012 easy

What does the `stop` (or "stop sequences") parameter available in most LLM generation APIs do?

  1. It tells the API to stop generating further tokens as soon as any one of a specified list of strings appears in the output, and to exclude that string from the returned text
  2. It sets a maximum wall-clock time limit in seconds after which the API forcibly terminates the connection regardless of how much text has been generated
  3. It specifies a list of words the model is never permitted to generate anywhere in its response, causing an error if any of them would otherwise be produced
  4. It pauses generation partway through and waits for the client to send an approval signal before continuing to generate the remainder of the response
Next card → Shuffle