All Questions
Llm Gateway Cost And Caching easy

A feature sends 1,500 input tokens and receives 600 output tokens per request. Output tokens cost about 5x input tokens. Which single change cuts cost the most?

  1. A Trim the prompt from 1,500 to 1,200 input tokens by shortening the instructions.
  2. B Cap the response at 300 output tokens with a max-tokens limit and terse format.
  3. C Remove the few-shot examples so the prompt shrinks by about 400 input tokens.
  4. D Compress whitespace and punctuation in the prompt to save about 100 input tokens.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions