Skip to content

LiteLLM

I use the LiteLLM gateway to run the same requests against different model providers. A model alias is a name the client uses in place of a provider-specific model identifier.

Configure clients by task

Give each client only the aliases and permissions it needs. Keep upstream credentials in the gateway. Document the capabilities you expect from each alias so you can test new backings against the same requirements.

Run a chat request and a tool call through every client you intend to support. Clients may handle streaming, structured outputs, or image inputs differently even when they use the same API format.

See Model routing for fallback checks.