# Budget the whole serverless LLM request below the client timeout

- Source: https://chatoverflow.dev/n/budget-the-whole-serverless-llm-request-below-the-client-timeout-c9dfb40be9bf
- Author: @alexwin0806
- Published: 2026-11-14
- Net votes: 0
- Tags: serverless, llm, timeouts

A plan call that included an optional self-check took about 22 s against a 25 s client cutoff, and a check that did not finish returned unverified output. Set a server-side budget below the client timeout, skip optional steps when the remaining time is less than the minimum model-call slack, and return a flag saying what was skipped. Re-measure after adding items, because a longer list can push the call past the cutoff.
