Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Litellm Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-litellm-knowledge-patch-nevaberry-plugins)
---
name: litellm-knowledge-patch
description: LiteLLM
version: "1.111.1"
license: MIT
metadata:
author: Nevaberry
---
# LiteLLM compatibility guidance
Load this skill when configuring, upgrading, or debugging LiteLLM routing,
virtual keys, MCP, protocol bridges, or proxy operations. Use the quick reference
for common changes and the topic references for complete settings and examples.
## Reference index
| Reference | Topics |
| --- | --- |
| [Keys, budgets, and governance](references/keys-budgets-and-governance.md) | Ownership, permissions, key lifecycle, tags, budgets, teams, user attribution |
| [MCP, agents, and guardrails](references/mcp-agents-and-guardrails.md) | OAuth, credentials, tool discovery, MCP permissions, guardrail scope, agents, skills |
| [Models and protocols](references/models-and-protocols.md) | Model configuration, credentials, provider adapters, protocol bridges, streaming, files |
| [Operations and observability](references/operations-and-observability.md) | Workers, databases, migrations, health, spend, retention, tracing, dashboard and CLI |
| [Proxy security and runtime](references/proxy-security-and-runtime.md) | Images, Helm, runtime, authentication, validation, ownership, networking, timeouts |
| [Routing and fallbacks](references/routing-and-fallbacks.md) | Deployment limits, groups, strategies, complexity routing, retries, cooldowns, affinity |
## Breaking changes and deprecations
### Cache, Helm, and fallback configuration
In v1.109.0, `cache_params.type: disk` prevents proxy startup. Set the type to
`local` or `redis` before upgrading.
Remove `lensWorker.enabled` before upgrading to v1.106.7 so the Helm chart renders.
In v1.109.0, deploy Lens from its own chart and connect it with the proxy chart's
`lens.*` values.
Starting in v1.109.0, initialization rejects string-valued fallback targets.
Change `fallbacks: [{chat: backup}]` to `fallbacks: [{chat: [backup]}]`, even for
one target.
### Deployment limits and batch checks
In v1.109.0, `enable_pre_call_checks` no longer filters deployments by RPM.
Add the following check to retain a hard deployment RPM cap; it also supports
daily deployment limits through `rpd` and `tpd`.
```yaml
router_settings:
optional_pre_call_checks: [enforce_model_rate_limits]
```
`general_settings.skip_batch_input_file_rate_limiting_for_models` is deprecated,
has no effect, and emits a startup warning. Use
`skip_batch_input_file_rate_limiting_for_providers` for provider-specific TPM/RPM
exemptions; these still read the file for keys with a model allowlist.
### Credentials and request fields
In v1.106.9 and v1.108.6, model and pass-through routes reject top-level
`tenant_id`, `client_id`, `client_secret`, `azure_username`, `azure_password`, and
`azure_scope`. Put those names under `metadata` if using them as request tags.
Starting in v1.108.16, affected `azure` deployments with a `/openai/v1` base need
a deployment `api_key` or `AZURE_API_KEY`; update deployments that previously
inherited `OPENAI_API_KEY`.
In v1.108.15, keyless JSON-configured deployments affected by the new credential
check return HTTP `401`. Supply a deployment `api_key` or its provider's API key
environment variable.
### Protocol validation
On v1.108.7 and v1.109.0, chat-bridged `/v1/responses` returns HTTP `400` for
Responses-only fields such as `max_tool_calls`. Remove those fields or enable
`drop_params: true`. Since v1.108.2, the same choices apply to hosted MCP tools
that a translated route cannot run.
Starting in v1.109.0, requests to newer deployments that retired sampling controls
must omit `temperature`, `top_p`, and `top_k` or use `drop_params: true`.
In v1.108.18, chat-bridged Responses calls reject an unknown `previous_response_id`
with HTTP `400`. `/v1/messages` also returns `400` for text blocks whose text is
null or numeric; `drop_params: true` can still discard those blocks.
In v1.109.0, `/v1/images/generations` requires `model`; omission returns HTTP `400`.
### Runtime, trust, and migrations
Version v1.109.0 supports Python 3.15. `import litellm` raises `ImportError` when
the installation lacks `_native`.
Starting with v1.106.11, v1.108.10, v1.109.2, and v1.110.1, verify release images
with the release workflow's certificate identity and OIDC issuer. Apply the same
flags to database, non-root, and Docker Hub images.
```sh
cosign verify \
--certificate-identity https://github.com/BerriAI/project-releaser/.github/workflows/release.yml@refs/heads/main \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
ghcr.io/berriai/litellm:v1.108.10
```
The SDK, proxy, and container trust bundles drop `eMudhra` in v1.103.8,
v1.104.6, v1.105.4, and v1.106.3. TLS verification can fail for endpoints relying
on that bundled root.
When upgrading to v1.106.1, run `db_scripts/strip_vector_store_internal_metadata.py`
for vector stores created before that release to remove proxy-added metadata
keys that can cause HTTP `400` on metadata updates.
## Routing, retries, and streaming
### Limits and selection
`enforce_model_rate_limits` checks deployment `rpm` and `tpm` before upstream
requests. RPM uses the configured ceiling; TPM uses tokens counted after completed
calls, so a call can exceed the cap before the next call is blocked. Rejections
return HTTP `429` with `Retry-After: 60`. Separate token limits use `itpm` and `otpm`.
`litellm_params.order` tries lower deployment tiers first, with retries per tier
before model-group fallbacks. `litellm_params.weight` controls selection frequency
under the default `simple-shuffle` strategy.
Use a routing group's `group_name` as the request's `model` to route across its
members. It has its own model-list entry and key or team grant. Each model may
belong to one group; `default` is reserved.
### Retry scope and fallback permissions
Retries run within each model group before the next fallback. `num_retries`
precedence is `x-litellm-num-retries`, request body, deployment `litellm_params`,
then `litellm_settings`. The provider SDK's `max_retries` is fixed at `0`;
`num_retries: 0` disables router retries.
`general_settings.enforce_fallback_model_access: true` checks the caller's key,
team, and project permissions for router-configured fallbacks. If every fallback
is excluded, the proxy returns the primary error.
### Stream boundaries
In v1.109.0, interrupted Chat Completions streams can continue on a configured
fallback after partial output. On `/v1/responses`, v1.110.2 stops retrying after
output reaches the client, including reasoning, and prevents a second response
from starting on a fallback group.
In v1.109.0, streams ending without a finish reason are errors. Stalled stream
reads on Chat Completions, Messages, or Responses raise `litellm.Timeout` with
HTTP `408`. `ttft_timeout` and `stream_idle_timeout` bound the first token and
gaps between tokens under `router_settings` or per deployment.
Resume a background response in v1.109.0 with `stream=true` and `starting_after`
set to the last received event's sequence number:
`GET /v1/responses/resp_123?stream=true&starting_after=12`.
## Virtual keys and budgets
A key's `user_id` identifies its owner. Management routes use the owner's role;
`allowed_routes` restricts routes for any role, including `proxy_admin`.
Personal keys use the owner's and key's model lists; team keys use their own
permissions and can use `{"models": ["all-team-models"]}` for the team's list.
With Postgres configured, create a tag using `POST /tag/new`:
```json
{"name": "engineering", "max_budget": 500, "budget_duration": "30d"}
```
Attach it with `{"tags": ["engineering"]}` in `/key/generate` or `/key/update`.
Requests inherit key tags; any over-budget tag causes `budget_exceeded`.
`general_settings.reject_clientside_metadata_tags: true` rejects client
`metadata.tags` while allowing inherited virtual-key metadata tags.
The proxy reserves estimated cost before each request by default.
`general_settings.disable_budget_reservation: true` disables reservation and logs
a warning. Concurrent requests can overspend a budget with room left; exhausted
budgets continue rejecting requests.
In v1.109.0, `/key/update` requires admin rights for `budget_duration` and
`budget_id`; an opt-in allows owners to edit `max_budget` and `budget_limits`.
In v1.108.17, non-admin owners clearing `max_budget` receive HTTP `403`;
an administrator must remove the cap.
## MCP and guardrails
Use `true_passthrough` or `oauth_delegate` when clients hold upstream MCP
credentials. Client-forwarded pass-through calls relay upstream `401` responses.
Use `oauth2_token_exchange` with the `entra_obo` profile for on-behalf-of exchange.
Gateway-owned registration is opt-in for new clientless MCP DCR bridges in
v1.108.16, v1.109.4, and v1.110.3. Set `LITELLM_MCP_DCR_GATEWAY_CLIENT=true`
to keep automatic gateway-owned registration.
In v1.109.0, admin-owned team keys can access only their team's MCP servers and
toolsets. A tool in both `allowed_tools` and `disallowed_tools` is denied.
Semantic filtering returns an error and withholds the unfiltered tool list if
it exceeds its context window.
Model Armor supports `pre_mcp_call` and `during_mcp_call`; Content Filter supports
`pre_mcp_call`. `skip_unscannable_attachments` passes reference-only attachments
through Model Armor. Unified scans on Chat Completions and `/v1/messages` can omit
system or tool messages using `skip_system_message_in_guardrail` or
`skip_tool_message_in_guardrail` under
`litellm_settings`, while sending the full messages upstream; guardrails can
override each setting under their own `litellm_params`.
## Operations and observability
Set `LITELLM_JOB_ROLE=serving` on serving replicas and `LITELLM_JOB_ROLE=worker`
on a dedicated deployment for single-owner jobs. The default `all` and `worker`
both register every job.
Set `LITELLM_OFFLINE_MODE=true` in v1.109.0 to disable the proxy's own outbound
fetches, or `LITELLM_DISABLE_LATEST_RELEASE_CHECK=true` to disable just that check.
LiteLLM resolves `HTTP_PROXY`, `HTTPS_PROXY`, and `NO_PROXY` for aiohttp by default.
`DISABLE_AIOHTTP_TRUST_ENV=True` turns off this proxy resolution.
`AIOHTTP_TRUST_ENV=True` enables environment handling in the aiohttp session.
The httpx transport honors the proxy variables regardless of the opt-out.
Use `litellm.*` for proxy-specific OpenTelemetry error details. Set
`OTEL_SEMCONV_STABILITY_OPT_IN=gen_ai_latest_experimental` for the newer GenAI
conventions. `litellm_settings.request_correlation_in_logs: true` adds `trace_id`
and `session_id` to request logs and exposes `session_id` in `StandardLoggingPayload`.