How does "Auto" mode work?

The Auto mode for choosing the llm model is interesting, I really want to know how it chooses the llm model based on the task, is there a default thing here or a sophisticated algo working in the back?