A Production Readiness Checklist for LLM Features in FastAPI
Getting an LLM feature working in a notebook is a different problem from keeping it working in production. The demo path is short: call the model, print the answer. Production adds everything the demo skips. You need evals that catch regressions, guardrails for bad input and worse output, and trace

Getting an LLM feature working in a notebook is a different problem from keeping it working in production. The demo path is short: call the model, print the answer. Production adds everything the demo skips. You need evals that catch regressions, guardrails for bad input and worse output, and traces you can debug at 2 a.m. You also need a plan for when the model is down, a cost number you can defend, and secrets handled like secrets.
This is the checklist I run before an LLM feature goes live in a FastAPI service. It assumes Python, an OpenAI-compatible API or similar, and a team that will maintain the feature after launch.
"Feels better" is not a measurement. Before any prompt or model change ships, you want a small eval set that scores the change automatically.
If you change one thing this month, make it this. Everything else on the list protects the system; evals protect the behavior users care about.
Free-form text out of a model is a liability in a typed backend. Constrain it.
When a user reports "the AI gave a weird answer yesterday," you need to answer fast. Four questions cover most incidents: what was sent, what came back, which model and prompt version produced it, and what it cost.
The model will be slow, rate-limited, or down. Decide the behavior before it happens.
Costs are predictable until users arrive. Then someone pastes a book into your chat box.
A few notes that make the checklist cheap to adopt:
Ready is not "the demo worked." A feature is ready when a prompt change that hurts quality fails CI. When every call is traced and costed. When a provider outage triggers a fallback instead of an incident review, and turning the feature off takes one flag flip. That bar is reachable in a sprint or two if you build in this order: evals first, then guardrails, then observability, then the rest.
This checklist came out of shipping Python and AI systems for production teams. I write about this work and take a small number of consulting engagements. Most are FastAPI backends and production AI architecture for teams in the US and Canada. Details are on my site: https://www.kevynfranco.com/consulting. If you run an agency or outsourcing firm that needs extra senior Python or AI delivery capacity, there is a white-label partner path at https://www.kevynfranco.com/partners.