promptdojo_

Mission: FastAPI model server — step 6 of 7

Stage 5's improvement, the request counter: predict() increments COUNTS["rejected"] on 422s and COUNTS["ok"] on successes; health() now returns {"ok": True, "model_version": ..., "requests": {...}}. Run the four requests (two good, two malformed) and print the health payload — the observability that turns "is it up?" into "what has it been doing?".

full-screen editor opens — close anytime to keep reading.