This isn't GPT confusing Singapore with Malaysia: Singapore does not have state elections. ChatGPT, and GPT in general, is a large language transformer model with tens of billions of parameters + the ability to link data into seemingly coherent (although in this case false) info.