promptdojo_

Wire the real model — swap fake_llm for the Anthropic SDK shape — step 6 of 9

Cursor wrote this for "just one quick test." The key is hardcoded as a Python literal. If you commit and push, the key is in your git history forever — even after you delete the line, even after you git push --force (the rotation API logs prove it).

Fix the code to load the key from the environment via os.getenv. In this demo the env var is set for you.

Expected output:

key starts with: sk-ant
The break is on line 5 — but read the whole snippet first.

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