The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
chore(router): document the breadcrumb write-back and ratchet lint budgets
mateo-berri7c87451eadff
diff --git a/basedpyright-code-budget.json b/basedpyright-code-budget.jsonindex 3f96531cf6f..5872a6a7257 100644--- a/basedpyright-code-budget.json+++ b/basedpyright-code-budget.json@@ -3,7 +3,7 @@"limit": 14074},"reportArgumentType": {- "limit": 2215+ "limit": 2214},"reportAssignmentType": {"limit": 319@@ -42,7 +42,7 @@"limit": 12},"reportIndexIssue": {- "limit": 25+ "limit": 24},"reportInvalidTypeForm": {"limit": 34@@ -57,7 +57,7 @@"limit": 5601},"reportMissingTypeArgument": {- "limit": 15290+ "limit": 15289},"reportMissingTypeStubs": {"limit": 40@@ -105,7 +105,7 @@"limit": 109},"reportUnknownMemberType": {- "limit": 38332+ "limit": 38328},"reportUnknownParameterType": {"limit": 19625diff --git a/litellm/router.py b/litellm/router.pyindex 69fe731bfbd..11a042861f8 100644--- a/litellm/router.py+++ b/litellm/router.py@@ -8073,7 +8073,8 @@ class Router:if isinstance(earlier_breadcrumbs, (list, tuple))else ())- kwargs[_metadata_var]["previous_models"] = (*kept_breadcrumbs, mask_credentials_in_payload(previous_model))+ breadcrumbs: Final = (*kept_breadcrumbs, mask_credentials_in_payload(previous_model))+ kwargs[_metadata_var]["previous_models"] = breadcrumbs # rebind-ok: the logging object already holds this dictreturn kwargsdef _update_usage(self, deployment_id: str, parent_otel_span: Span | None) -> int:diff --git a/ruff-strict-budget.json b/ruff-strict-budget.jsonindex 4fcf650a8bc..d7cf9e039bc 100644--- a/ruff-strict-budget.json+++ b/ruff-strict-budget.json@@ -144,7 +144,7 @@"limit": 1},"PLR1704": {- "limit": 3+ "limit": 2},"PLR1714": {"limit": 253@@ -240,13 +240,13 @@"limit": 96},"TRY201": {- "limit": 403+ "limit": 402},"TRY203": {- "limit": 111+ "limit": 110},"TRY300": {- "limit": 854+ "limit": 853},"UP028": {"limit": 2diff --git a/type-discipline-budget.json b/type-discipline-budget.jsonindex f3c4c7760c6..d73b1b2e277 100644--- a/type-discipline-budget.json+++ b/type-discipline-budget.json@@ -1,9 +1,9 @@{"LIT001": {- "limit": 22334+ "limit": 22333},"LIT002": {- "limit": 26763+ "limit": 26760},"LIT003": {"limit": 261@@ -30,7 +30,7 @@"limit": 16480},"LIT011": {- "limit": 5520+ "limit": 5518},"LIT012": {"limit": 4489