Hybrid LLM: Cost-Efficient and Quality-Aware Query Routing