Reliability
On 11 December 2024, OpenAI's API and ChatGPT were down for over four hours. Every product built only on that API went down with it. Model APIs fail more often than most services you call, in more ways, and with longer tails. A reliable AI product expects that and keeps answering anyway.
In this lesson you'll learn to
- Classify the ways model calls fail (rate limits, overload, server errors, timeouts, bad output) into ones worth retrying and ones that aren't.
- Retry safely with exponential backoff, jitter, retry-after headers, a cap on attempts and idempotent side effects.
- Set timeouts per call, per stream and per request, so one slow call can't hang the whole product.
- Design fallbacks across models and providers, with a circuit breaker and a degraded mode, and test them before you need them.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.