Every AI feature eventually has to deal with the model being wrong. Four projects with public code handled it the same way, and none of them relied on the prompt to do it. Each one changed what the model hands back, so plain code could check it before anything happened.

Source: [Dev.to](https://dev.to/michi_yamamoto/ask-the-model-for-something-your-code-can-check-4eaa)

Sponsored