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.
⌘↵ runs the editor.read, then continue.
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.
this step needs the editor
on desktop today; in the app (coming soon). save your spot and we'll bring you back here when you're ready.