All Questions
Llm Gateway Cost And Caching medium

During a primary provider outage, your gateway fails over to a second provider using the identical prompt and tool definitions. Plain chat works, but the agent's tool calls start failing with malformed arguments. Why?

  1. A Tool-call formats and prompt behavior differ by provider; fallbacks need mapped schemas and prompts tested on that model.
  2. B The fallback provider's prompt cache was cold, so the first requests were truncated until the cached prefix was written.
  3. C The gateway's semantic cache served answers from the primary provider that referenced tool-call IDs the fallback never issued.
  4. D The fallback's rate limit was hit by the failover surge, and throttled responses come back as partial tool-call JSON.

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

Get the app

Related questions