Skip to content

Model routing

Choose a model category when you know the workload. For example, a quick summary and a long analysis can use different aliases. The caller can keep the same alias while you test or replace its backing model.

Example alias Workload What to measure
summary-fast Short, repeatable summaries Response time and accuracy
analysis-long Requests with many inputs or steps Coverage and adherence to instructions
tools-read Fetching information through a tool Correct tool choice and valid arguments

Check fallback behavior

A fallback should meet the same requirements as the primary model. Check the input types, the required tool calls, and any data-handling constraints. Simulate an unavailable model with a local stub or a test environment and verify what the caller sees when every option is unavailable.