I would never accept a student’s use of Wikipedia as a source. However, it’s a great place to go initially to get to grips with a topic quickly. Then you can start to dig into different primary and secondary sources.
Chat GPT is the same. I would never use the content it makes without verifying that content first.
I use ChatGPT to create banks of questions that are aligned to the essential topics that I need students to learn. Then I randomly assign the same number of questions to each student from each essential topic. I give the students the list of topics to focus their studying on.
I also have other “categories” that form their final grade, things like participation and homework assignments. So any marginal unfairness that might result from randomized test questions is more that made up for over the course of everything I grade them on.