Structured output problems.
THE CAUSE
The format was described rather than demonstrated.
THE FIX
Give an example of the exact output you want.
That conveys more than any description.
FOR TABLES
Specify the columns explicitly, in order.
FOR LISTS
State the form. "One line per item, no bullets, no numbering."
FOR CONSISTENT OUTPUT ACROSS ATTEMPTS
The identical prompt each time An example Lower temperature, where available
IF IT ADDS COMMENTARY YOU DID NOT WANT
"Return only the table. No explanation before or after."
That instruction is frequently needed.
IF IT KEEPS DRIFTING
Shorter outputs drift less. Process in smaller batches.
FOR AUTOMATED USE
Validate the output format in your own code, and handle the cases where it does not match.
Occasional deviation will happen.