Debugging
Enable debug logs
SetRUST_LOG before starting the proxy:
Router resolution
Every request logs how the incoming model name was resolved to an upstream deployment. Exact match — model name matched a named route inmodel_list:
/* wildcard route. Provider prefix stripped if present:
Model cost map
On startup the proxy fetches the LiteLLM model pricing sheet. If the fetch fails it falls back to an embedded backup:Config validation errors
Bad config exits immediately with a descriptive message:| Error | Cause |
|---|---|
model must include provider prefix | litellm_params.model missing provider/ prefix |
model missing name after provider prefix | litellm_params.model set to just anthropic/ |
unsupported provider: <id> | Provider not registered (e.g. typo) |
missing litellm_params.api_key | No API key for that model entry |
only one wildcard model route is supported | More than one /* entry in model_list |