Chat GPT doesnt really have the ASOIAF lore right so maybe its not reliable. I have it in my head that onion knight meant impoverished knights, they had to eat onions. I dont know the origin of that. It may come from ASOIAF.