Skip to main content
Learn practical patterns for implementing smart routing with LLMs using Eden AI’s dynamic model selection.

Overview

Use @edenai as the model name to let the router automatically select the best available model. You can optionally provide router_candidates to restrict selection to a specific pool.

Basic Usage

Let the system choose from all available models:
Python

Custom Candidate Pool

Restrict routing to a specific set of models using router_candidates:
Python

Use Case Reference

Next Steps

Fallback

Built-in fallback for LLM and expert model requests