promptdojo_

Messages, roles, and the response — the call AI ships every time — step 6 of 9

Claude wrote this and passed messages as a single dict instead of a list of dicts. The real API would 400 this request. Fix line 1 so messages is a list containing the one user turn, then the loop prints the content.

Expected output:

Hello, model.
The break is on line 1 — but read the whole snippet first.

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