All Questions
Llm Gateway Cost And Caching easy

Your gateway applies one 5-second timeout to all LLM calls. Classification calls work fine, but long streamed answers are frequently cut off. What is the best fix?

  1. A Raise the timeout to 120 seconds for all calls so no request is ever cut off early.
  2. B Keep 5 seconds everywhere and retry streamed calls until one finishes in time.
  3. C Set timeouts by call type: long for streaming, short for classification.
  4. D Remove timeouts entirely and rely on the provider to close finished connections.

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

Get the app

Related questions