One template, both places
Write the function that builds a request once and use it for training and for serving. Two copies of a template is where the drift lives, and drift is the failure.
Validate the outputs
Parse every expected output before training. A set with unparseable outputs trains on noise, and the run looks successful while the model learns nothing usable.