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

An LLM API's "context window" limit of, say, 200,000 tokens applies to what, specifically, during a single API call?

  1. The combined total of the input tokens sent in the request (system prompt, conversation history, and any injected documents) plus the output tokens the model generates in response
  2. Only the tokens in the user's most recent message, since earlier turns in the conversation are automatically summarized and don't count against the limit
  3. Only the tokens the model generates in its response, since input tokens are processed by a separate, effectively unlimited ingestion pipeline
  4. The number of separate API requests a client can make per minute before being rate-limited
Next card → Shuffle