Engineering questions we are asked most
These come up in almost every integration. We have written the checks that matter and the order to work through them.
How should I handle a 429?
It usually means you exceeded the request rate. Back off exponentially with jitter, and smooth the load on the client side so bursts are absorbed before they reach the limit.
Requests keep timing out. Where do I start?
Check whether reasoning or web search is enabled first — both add substantial time. Then set the timeout from the measured duration with those features on, rather than keeping the default.
What do I do when I exceed the context limit?
Trim the oldest history first, and consider retrieval-style summarisation for long documents. Raising the ceiling is the last option, because it inflates both cost and latency.
The response looks cut off. Why?
Usually the output limit is too small and the ending is incomplete. Raise the limit, ask for a more compact answer, or split the long task into steps.
What is the difference between 401 and 403?
401 usually means the key is missing, mistyped or no longer valid. 403 generally points at permissions or policy — account status or scope of use. Both need checking in the console.
What concurrency level should I run?
There is no universal number; it depends on your quota and your latency budget. Start low, raise it while watching error rate and response time, and use a queue to smooth spikes.
How do I keep the bill under control?
Three levers do most of the work: set the output limit explicitly, disable reasoning and search for tasks that do not need them, and compress the context. Encode all three as defaults in code.
How do I degrade gracefully during an outage?
Keep a lightweight fallback path — a smaller model or a rules-based answer — and switch to it after a threshold of consecutive failures. Separate the failure causes so not every error is treated as throttling.