Model routing
Điều hướngRoute #1 trong ảnh#1 in imageroute(prompt) → Choice<small | medium | large>
Đọc prompt, chọn model rẻ nhất đủ sức trả lời trước khi gọi.Read the prompt and pick the cheapest model that can handle it, before the call.
- Dùng choUse for
- Chatbot hỗ trợ, trợ lý code, pipeline tóm tắt dùng chung một endpoint.Support bots, coding assistants, summarisation pipelines sharing one endpoint.
- ĐượcGain
- Routing gần như miễn phí: 1 triệu prompt × 300 token ≈ 12,6 đô.Routing is nearly free: 1M prompts × 300 tokens ≈ $12.60.
- MấtLose
- Route nhầm xuống model nhỏ cho ra câu trả lời kém mà không ai báo lỗi.Misrouting down to a small model gives a weak answer nobody reports.
Đánh đổiTrade-off Đổi chất lượng ở những ca bị route nhầm lấy hoá đơn LLM giảm theo tỉ lệ prompt dễ.Trades quality on misrouted cases for an LLM bill that shrinks with your share of easy prompts.
Dấu hiệu nhận biếtHow to spot it Hoá đơn LLM cao trong khi phần lớn prompt là câu dễ.A high LLM bill while most prompts are easy.