I agree that declaring a win is a bit impolite _if_ the other person hasn't agreed. But changing "farmer" to "robot farmer" because Google won't allow him to generate pictures with humans is obviously not changing the goalposts in the usual meaning of the term.
I think changing the terms of the bet is definitely shifting the goalpost, even if not by much. It is certainly enough for the other party to refuse the win.