This example is available on GitHub: examples/01_standalone_sdk/19_llm_routing.py
examples/01_standalone_sdk/19_llm_routing.py
Running the Example
Using the built-in MultimodalRouter
Define the built-in rule-basedMultimodalRouter that will route text-only requests to a secondary LLM and multimodal requests (with images) to the primary, multimodal-capable LLM:
Router class. See the base class for details.
Next Steps
- LLM Registry - Manage multiple LLM configurations
- LLM Metrics - Track token usage and costs

