promptdojo_

FastAPI inference shape — step 2 of 7

Your /predict endpoint reads request["amount"] directly. A caller sends {} (no amount) and the service returns a 500 with a stack trace. What's the right fix at the endpoint?