ChatGPT and any other LLM are just a representation of the data that is used. Model weights are used to try and correct this but until we create or figure out how to address the bias in data we are SOL when it comes to preventing this.