Another way to implement name generation is to pre-generate hundreds of names and then randomly select one when the "Generate" button is clicked. Just like this blog does: https://www.imagineforest.com/blog/purple-dragon-names/
However, I want to add a feature to generate dragon names baesd on one's own name. Of course, a simple way is to select a name based on the initials of the name. But I think this is not smart enough, so I introduced an LLM to achieve this function. Due to my lack of experience in this area, there are indeed many security vulnerabilities that have not been fixed yet.