Unit 7: Using LLM APIs safely · Lesson 4 of 5 · 24 min Pro

Validating model output

Ask for JSON, parse it defensively, check it against an allowlist and never execute what the model suggests.