Quite right!
You need to take it all (AI or internet searches) with a huge pinch of salt. Even ye olde text books were not infallible and often out of date, so sodium chloride was also required even then.
The code either works or it doesn’t - it’s all in the testing. If you deploy AI suggestions without thought you deserve the consequences.
BTW - thanks for Mistral. Another tool in the box!