Skip to content

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]

ci(lint): grandfather any-discipline with a per-file ratchet budget (50% headroom) (#30582)

Mateo Wang17b88719a2d6
diff --git a/.github/workflows/test-linting.yml b/.github/workflows/test-linting.yml
index d06b9a16e6d..0a80a65cbe6 100644
--- a/.github/workflows/test-linting.yml
+++ b/.github/workflows/test-linting.yml
@@ -177,7 +177,7 @@ jobs:
restore-keys: |
any-mypy-cache-${{ runner.os }}-py3.12-
- - name: Check Any discipline on changed lines
+ - name: Check Any discipline (per-file budget on changed files)
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
run: |
diff --git a/CLAUDE.md b/CLAUDE.md
index a81ee1f3b91..95904ef8abd 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -36,11 +36,11 @@ Don't hesitate to use values in .env to get needed API keys and other secrets, a
Run tests, format your code, and lint your code before each commit
-When you fix violations gated by `ruff-strict-budget.json`, `mypy-code-budget.json`, or `basedpyright-code-budget.json`, run `make lint-budget-update` and commit the lowered baselines so the ceilings ratchet down instead of leaving stale headroom
+When you fix violations gated by `ruff-strict-budget.json`, `mypy-code-budget.json`, `basedpyright-code-budget.json`, or `any-discipline-budget.json`, run `make lint-budget-update` and commit the lowered baselines so the ceilings ratchet down instead of leaving stale headroom
If you're trying to create a new function that relies on untyped stuff, instead of adding more Any's and bringing it closer to the max, just validate it in the caller with Pydantic (a model or `TypeAdapter` that returns the typed thing or raises will do) and then pass the now typed variable in
-The Any-discipline gate (`make lint-any`, also a CI job) fails when a line you changed under `litellm/` holds a value typed `Any`, including the `X | Any`. Ideally `# any-ok: <reason>` is never used; treat it as a last resort for a genuine typed/untyped boundary that Pydantic truly can't model
+The Any-discipline gate (`make lint-any`, also a CI job) fails when a changed file under `litellm/` carries more `Any`-typed values than its grandfathered ceiling in `any-discipline-budget.json` (each file's captured count plus 50% headroom). It flags values whose inferred type *contains* `Any`, including the `X | Any` unions mypy/basedpyright accept. Editing a legacy file is fine as long as you don't push its `Any` count past the ceiling; a brand-new file must be `Any`-free. Fix a value by giving it a concrete type (if you're given untyped input, validate with Pydantic). Ideally `# any-ok: <reason>` is never used; treat it as a last resort for a genuine typed/untyped boundary that Pydantic truly can't model
If you get an LIT001 or LIT002 fail, refactor the code to follow functional programming best practices rather than introducing mutable data structures. For example, build values in one shot with comprehensions or generators wrapped in `tuple()` / `frozenset()` instead of seeding an empty `list`/`dict`/`set` and mutating it over time. Ideally `# mutable-ok` is never used; reach for it only as a genuine last resort when an immutable rewrite is truly impossible, and always pair it with a real reason
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 97a8d53f831..9643a58742c 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -155,7 +155,7 @@ Individual linting commands:
make format-check # Check Black formatting
make lint-ruff # Run Ruff linting
make lint-mypy # Run MyPy type checking
-make lint-any # Fail on Any-typed values on changed lines
+make lint-any # Gate changed files against their per-file Any budget
make check-circular-imports # Check for circular imports
make check-import-safety # Check import safety
```
diff --git a/Makefile b/Makefile
index f0563b273c2..0a6d612e8b8 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@
test-proxy-unit-a test-proxy-unit-b test-integration test-unit-helm \
info lint lint-dev format \
lint-mypy lint-mypy-budget-update lint-basedpyright lint-basedpyright-budget-update \
- lint-ruff-budget lint-ruff-budget-update lint-budget-update lint-any \
+ lint-ruff-budget lint-any lint-ruff-budget-update lint-budget-update lint-any-budget-update \
install-dev install-proxy-dev install-test-deps install-hooks \
install-helm-unittest check-circular-imports check-import-safety
@@ -30,9 +30,10 @@ help:
@echo " make lint-basedpyright-budget-update - Re-capture the basedpyright per-rule budget (ratchet)"
@echo " make lint-black - Check Black formatting (matches CI)"
@echo " make lint-ruff-budget - Gate the codebase total of each strict ruff rule against its ceiling"
+ @echo " make lint-any - Gate changed files under litellm/ against their per-file Any budget"
@echo " make lint-ruff-budget-update - Re-capture per-rule baselines in ruff-strict-budget.json (ratchet)"
- @echo " make lint-budget-update - Re-capture all three ratchet budgets (ruff + mypy + basedpyright)"
- @echo " make lint-any - Fail if changed lines under litellm/ hold an Any-typed value"
+ @echo " make lint-budget-update - Re-capture all four ratchet budgets (ruff + mypy + basedpyright + any)"
+ @echo " make lint-any-budget-update - Re-capture the per-file Any budget across the whole tree (ratchet)"
@echo " make check-circular-imports - Check for circular imports"
@echo " make check-import-safety - Check import safety"
@echo " make test - Run all tests"
@@ -146,12 +147,15 @@ lint-ruff-budget: install-dev
lint-ruff-budget-update: install-dev
$(UV_RUN) python scripts/ruff_strict_gate.py --update
-# Ratchet all three budgets in one shot (ruff strict + mypy + basedpyright)
-lint-budget-update: lint-ruff-budget-update lint-mypy-budget-update lint-basedpyright-budget-update
+# Ratchet all four budgets in one shot (ruff strict + mypy + basedpyright + any)
+lint-budget-update: lint-ruff-budget-update lint-mypy-budget-update lint-basedpyright-budget-update lint-any-budget-update
lint-any: install-dev
$(UV_RUN) python scripts/check_any_discipline.py --changed
+lint-any-budget-update: install-dev
+ $(UV_RUN) python scripts/check_any_discipline.py --update
+
check-circular-imports: install-dev
cd litellm && $(UV_RUN) python ../tests/documentation_tests/test_circular_imports.py && cd ..
diff --git a/any-discipline-budget.json b/any-discipline-budget.json
new file mode 100644
index 00000000000..d78b15e3653
--- /dev/null
+++ b/any-discipline-budget.json
@@ -0,0 +1,5974 @@
+{
+ "litellm/__init__.py": {
+ "baseline": 801,
+ "slack": 401
+ },
+ "litellm/_lazy_imports.py": {
+ "baseline": 55,
+ "slack": 28
+ },
+ "litellm/_logging.py": {
+ "baseline": 165,
+ "slack": 83
+ },
+ "litellm/_redis.py": {
+ "baseline": 416,
+ "slack": 208
+ },
+ "litellm/_redis_credential_provider.py": {
+ "baseline": 20,
+ "slack": 10
+ },
+ "litellm/_service_logger.py": {
+ "baseline": 96,
+ "slack": 48
+ },
+ "litellm/_uuid.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/a2a_protocol/card_resolver.py": {
+ "baseline": 15,
+ "slack": 8
+ },
+ "litellm/a2a_protocol/client.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/a2a_protocol/cost_calculator.py": {
+ "baseline": 26,
+ "slack": 13
+ },
+ "litellm/a2a_protocol/exception_mapping_utils.py": {
+ "baseline": 6,
+ "slack": 3
+ },
+ "litellm/a2a_protocol/litellm_completion_bridge/handler.py": {
+ "baseline": 104,
+ "slack": 52
+ },
+ "litellm/a2a_protocol/litellm_completion_bridge/transformation.py": {
+ "baseline": 86,
+ "slack": 43
+ },
+ "litellm/a2a_protocol/main.py": {
+ "baseline": 209,
+ "slack": 105
+ },
+ "litellm/a2a_protocol/providers/bedrock_agentcore/config.py": {
+ "baseline": 15,
+ "slack": 8
+ },
+ "litellm/a2a_protocol/providers/bedrock_agentcore/handler.py": {
+ "baseline": 34,
+ "slack": 17
+ },
+ "litellm/a2a_protocol/providers/bedrock_agentcore/transformation.py": {
+ "baseline": 45,
+ "slack": 23
+ },
+ "litellm/a2a_protocol/providers/langflow/config.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/a2a_protocol/providers/pydantic_ai_agents/config.py": {
+ "baseline": 13,
+ "slack": 7
+ },
+ "litellm/a2a_protocol/providers/pydantic_ai_agents/handler.py": {
+ "baseline": 11,
+ "slack": 6
+ },
+ "litellm/a2a_protocol/providers/pydantic_ai_agents/transformation.py": {
+ "baseline": 142,
+ "slack": 71
+ },
+ "litellm/a2a_protocol/providers/watsonx_orchestrate/config.py": {
+ "baseline": 13,
+ "slack": 7
+ },
+ "litellm/a2a_protocol/providers/watsonx_orchestrate/handler.py": {
+ "baseline": 118,
+ "slack": 59
+ },
+ "litellm/a2a_protocol/providers/watsonx_orchestrate/transformation.py": {
+ "baseline": 60,
+ "slack": 30
+ },
+ "litellm/a2a_protocol/streaming_iterator.py": {
+ "baseline": 57,
+ "slack": 29
+ },
+ "litellm/a2a_protocol/utils.py": {
+ "baseline": 36,
+ "slack": 18
+ },
+ "litellm/anthropic_beta_headers_manager.py": {
+ "baseline": 77,
+ "slack": 39
+ },
+ "litellm/anthropic_interface/exceptions/exception_mapping_utils.py": {
+ "baseline": 25,
+ "slack": 13
+ },
+ "litellm/anthropic_interface/exceptions/exceptions.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/anthropic_interface/messages/__init__.py": {
+ "baseline": 17,
+ "slack": 9
+ },
+ "litellm/assistants/main.py": {
+ "baseline": 398,
+ "slack": 199
+ },
+ "litellm/assistants/utils.py": {
+ "baseline": 94,
+ "slack": 47
+ },
+ "litellm/batch_completion/main.py": {
+ "baseline": 178,
+ "slack": 89
+ },
+ "litellm/batches/batch_utils.py": {
+ "baseline": 129,
+ "slack": 65
+ },
+ "litellm/batches/main.py": {
+ "baseline": 240,
+ "slack": 120
+ },
+ "litellm/budget_manager.py": {
+ "baseline": 117,
+ "slack": 59
+ },
+ "litellm/caching/_internal_lru_cache.py": {
+ "baseline": 15,
+ "slack": 8
+ },
+ "litellm/caching/azure_blob_cache.py": {
+ "baseline": 77,
+ "slack": 39
+ },
+ "litellm/caching/base_cache.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/caching/caching.py": {
+ "baseline": 378,
+ "slack": 189
+ },
+ "litellm/caching/caching_handler.py": {
+ "baseline": 337,
+ "slack": 169
+ },
+ "litellm/caching/disk_cache.py": {
+ "baseline": 75,
+ "slack": 38
+ },
+ "litellm/caching/dual_cache.py": {
+ "baseline": 192,
+ "slack": 96
+ },
+ "litellm/caching/gcs_cache.py": {
+ "baseline": 92,
+ "slack": 46
+ },
+ "litellm/caching/in_memory_cache.py": {
+ "baseline": 173,
+ "slack": 87
+ },
+ "litellm/caching/llm_caching_handler.py": {
+ "baseline": 32,
+ "slack": 16
+ },
+ "litellm/caching/qdrant_semantic_cache.py": {
+ "baseline": 359,
+ "slack": 180
+ },
+ "litellm/caching/redis_cache.py": {
+ "baseline": 588,
+ "slack": 294
+ },
+ "litellm/caching/redis_cluster_cache.py": {
+ "baseline": 35,
+ "slack": 18
+ },
+ "litellm/caching/redis_semantic_cache.py": {
+ "baseline": 194,
+ "slack": 97
+ },
+ "litellm/caching/s3_cache.py": {
+ "baseline": 138,
+ "slack": 69
+ },
+ "litellm/completion_extras/litellm_responses_transformation/handler.py": {
+ "baseline": 187,
+ "slack": 94
+ },
+ "litellm/completion_extras/litellm_responses_transformation/transformation.py": {
+ "baseline": 562,
+ "slack": 281
+ },
+ "litellm/compression/compress.py": {
+ "baseline": 120,
+ "slack": 60
+ },
+ "litellm/compression/content_detection.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/compression/message_stubbing.py": {
+ "baseline": 50,
+ "slack": 25
+ },
+ "litellm/compression/retrieval_tool.py": {
+ "baseline": 6,
+ "slack": 3
+ },
+ "litellm/compression/scoring/bm25.py": {
+ "baseline": 23,
+ "slack": 12
+ },
+ "litellm/compression/scoring/embedding_scorer.py": {
+ "baseline": 31,
+ "slack": 16
+ },
+ "litellm/constants.py": {
+ "baseline": 40,
+ "slack": 20
+ },
+ "litellm/containers/endpoint_factory.py": {
+ "baseline": 85,
+ "slack": 43
+ },
+ "litellm/containers/main.py": {
+ "baseline": 278,
+ "slack": 139
+ },
+ "litellm/containers/utils.py": {
+ "baseline": 30,
+ "slack": 15
+ },
+ "litellm/cost_calculator.py": {
+ "baseline": 428,
+ "slack": 214
+ },
+ "litellm/endpoints/speech/speech_to_completion_bridge/handler.py": {
+ "baseline": 59,
+ "slack": 30
+ },
+ "litellm/endpoints/speech/speech_to_completion_bridge/transformation.py": {
+ "baseline": 31,
+ "slack": 16
+ },
+ "litellm/evals/main.py": {
+ "baseline": 522,
+ "slack": 261
+ },
+ "litellm/exceptions.py": {
+ "baseline": 481,
+ "slack": 241
+ },
+ "litellm/experimental_mcp_client/client.py": {
+ "baseline": 174,
+ "slack": 87
+ },
+ "litellm/experimental_mcp_client/tools.py": {
+ "baseline": 47,
+ "slack": 24
+ },
+ "litellm/files/main.py": {
+ "baseline": 257,
+ "slack": 129
+ },
+ "litellm/files/streaming.py": {
+ "baseline": 47,
+ "slack": 24
+ },
+ "litellm/files/types.py": {
+ "baseline": 4,
+ "slack": 2
+ },
+ "litellm/fine_tuning/main.py": {
+ "baseline": 167,
+ "slack": 84
+ },
+ "litellm/google_genai/adapters/handler.py": {
+ "baseline": 49,
+ "slack": 25
+ },
+ "litellm/google_genai/adapters/transformation.py": {
+ "baseline": 325,
+ "slack": 163
+ },
+ "litellm/google_genai/main.py": {
+ "baseline": 179,
+ "slack": 90
+ },
+ "litellm/google_genai/streaming_iterator.py": {
+ "baseline": 56,
+ "slack": 28
+ },
+ "litellm/images/main.py": {
+ "baseline": 326,
+ "slack": 163
+ },
+ "litellm/images/utils.py": {
+ "baseline": 28,
+ "slack": 14
+ },
+ "litellm/integrations/SlackAlerting/batching_handler.py": {
+ "baseline": 44,
+ "slack": 22
+ },
+ "litellm/integrations/SlackAlerting/hanging_request_check.py": {
+ "baseline": 48,
+ "slack": 24
+ },
+ "litellm/integrations/SlackAlerting/slack_alerting.py": {
+ "baseline": 644,
+ "slack": 322
+ },
+ "litellm/integrations/SlackAlerting/utils.py": {
+ "baseline": 15,
+ "slack": 8
+ },
+ "litellm/integrations/additional_logging_utils.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/integrations/agentops/agentops.py": {
+ "baseline": 29,
+ "slack": 15
+ },
+ "litellm/integrations/anthropic_cache_control_hook.py": {
+ "baseline": 25,
+ "slack": 13
+ },
+ "litellm/integrations/argilla.py": {
+ "baseline": 204,
+ "slack": 102
+ },
+ "litellm/integrations/arize/__init__.py": {
+ "baseline": 10,
+ "slack": 5
+ },
+ "litellm/integrations/arize/_utils.py": {
+ "baseline": 632,
+ "slack": 316
+ },
+ "litellm/integrations/arize/arize.py": {
+ "baseline": 35,
+ "slack": 18
+ },
+ "litellm/integrations/arize/arize_phoenix.py": {
+ "baseline": 159,
+ "slack": 80
+ },
+ "litellm/integrations/arize/arize_phoenix_client.py": {
+ "baseline": 12,
+ "slack": 6
+ },
+ "litellm/integrations/arize/arize_phoenix_prompt_manager.py": {
+ "baseline": 117,
+ "slack": 59
+ },
+ "litellm/integrations/athina.py": {
+ "baseline": 85,
+ "slack": 43
+ },
+ "litellm/integrations/azure_sentinel/azure_sentinel.py": {
+ "baseline": 84,
+ "slack": 42
+ },
+ "litellm/integrations/azure_storage/azure_storage.py": {
+ "baseline": 148,
+ "slack": 74
+ },
+ "litellm/integrations/bitbucket/__init__.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/integrations/bitbucket/bitbucket_client.py": {
+ "baseline": 87,
+ "slack": 44
+ },
+ "litellm/integrations/bitbucket/bitbucket_prompt_manager.py": {
+ "baseline": 85,
+ "slack": 43
+ },
+ "litellm/integrations/braintrust_logging.py": {
+ "baseline": 318,
+ "slack": 159
+ },
+ "litellm/integrations/braintrust_mock_client.py": {
+ "baseline": 32,
+ "slack": 16
+ },
+ "litellm/integrations/cloudzero/cloudzero.py": {
+ "baseline": 200,
+ "slack": 100
+ },
+ "litellm/integrations/cloudzero/cz_resource_names.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/integrations/cloudzero/cz_stream_api.py": {
+ "baseline": 47,
+ "slack": 24
+ },
+ "litellm/integrations/cloudzero/database.py": {
+ "baseline": 9,
+ "slack": 5
+ },
+ "litellm/integrations/cloudzero/transform.py": {
+ "baseline": 83,
+ "slack": 42
+ },
+ "litellm/integrations/compression_interception/handler.py": {
+ "baseline": 184,
+ "slack": 92
+ },
+ "litellm/integrations/custom_batch_logger.py": {
+ "baseline": 40,
+ "slack": 20
+ },
+ "litellm/integrations/custom_guardrail.py": {
+ "baseline": 304,
+ "slack": 152
+ },
+ "litellm/integrations/custom_logger.py": {
+ "baseline": 197,
+ "slack": 99
+ },
+ "litellm/integrations/custom_prompt_management.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/integrations/custom_sso_handler.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/integrations/datadog/datadog.py": {
+ "baseline": 266,
+ "slack": 133
+ },
+ "litellm/integrations/datadog/datadog_cost_management.py": {
+ "baseline": 79,
+ "slack": 40
+ },
+ "litellm/integrations/datadog/datadog_handler.py": {
+ "baseline": 5,
+ "slack": 3
+ },
+ "litellm/integrations/datadog/datadog_llm_obs.py": {
+ "baseline": 314,
+ "slack": 157
+ },
+ "litellm/integrations/datadog/datadog_metrics.py": {
+ "baseline": 78,
+ "slack": 39
+ },
+ "litellm/integrations/datadog/datadog_mock_client.py": {
+ "baseline": 4,
+ "slack": 2
+ },
+ "litellm/integrations/datadog/datadog_team_handler.py": {
+ "baseline": 14,
+ "slack": 7
+ },
+ "litellm/integrations/deepeval/api.py": {
+ "baseline": 31,
+ "slack": 16
+ },
+ "litellm/integrations/deepeval/deepeval.py": {
+ "baseline": 131,
+ "slack": 66
+ },
+ "litellm/integrations/deepeval/types.py": {
+ "baseline": 16,
+ "slack": 8
+ },
+ "litellm/integrations/dotprompt/__init__.py": {
+ "baseline": 19,
+ "slack": 10
+ },
+ "litellm/integrations/dotprompt/dotprompt_manager.py": {
+ "baseline": 34,
+ "slack": 17
+ },
+ "litellm/integrations/dotprompt/prompt_manager.py": {
+ "baseline": 77,
+ "slack": 39
+ },
+ "litellm/integrations/dynamodb.py": {
+ "baseline": 64,
+ "slack": 32
+ },
+ "litellm/integrations/email_alerting.py": {
+ "baseline": 33,
+ "slack": 17
+ },
+ "litellm/integrations/focus/database.py": {
+ "baseline": 16,
+ "slack": 8
+ },
+ "litellm/integrations/focus/destinations/base.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/integrations/focus/destinations/factory.py": {
+ "baseline": 50,
+ "slack": 25
+ },
+ "litellm/integrations/focus/destinations/gcs_destination.py": {
+ "baseline": 16,
+ "slack": 8
+ },
+ "litellm/integrations/focus/destinations/mavvrik_destination.py": {
+ "baseline": 49,
+ "slack": 25
+ },
+ "litellm/integrations/focus/destinations/s3_destination.py": {
+ "baseline": 27,
+ "slack": 14
+ },
+ "litellm/integrations/focus/destinations/vantage_destination.py": {
+ "baseline": 25,
+ "slack": 13
+ },
+ "litellm/integrations/focus/export_engine.py": {
+ "baseline": 47,
+ "slack": 24
+ },
+ "litellm/integrations/focus/focus_logger.py": {
+ "baseline": 30,
+ "slack": 15
+ },
+ "litellm/integrations/focus/schema.py": {
+ "baseline": 76,
+ "slack": 38
+ },
+ "litellm/integrations/focus/serializers/csv.py": {
+ "baseline": 18,
+ "slack": 9
+ },
+ "litellm/integrations/focus/serializers/parquet.py": {
+ "baseline": 5,
+ "slack": 3
+ },
+ "litellm/integrations/focus/transformer.py": {
+ "baseline": 109,
+ "slack": 55
+ },
+ "litellm/integrations/galileo.py": {
+ "baseline": 381,
+ "slack": 191
+ },
+ "litellm/integrations/gcs_bucket/gcs_bucket.py": {
+ "baseline": 104,
+ "slack": 52
+ },
+ "litellm/integrations/gcs_bucket/gcs_bucket_base.py": {
+ "baseline": 48,
+ "slack": 24
+ },
+ "litellm/integrations/gcs_bucket/gcs_bucket_mock_client.py": {
+ "baseline": 60,
+ "slack": 30
+ },
+ "litellm/integrations/gcs_pubsub/pub_sub.py": {
+ "baseline": 56,
+ "slack": 28
+ },
+ "litellm/integrations/generic_api/generic_api_callback.py": {
+ "baseline": 198,
+ "slack": 99
+ },
+ "litellm/integrations/generic_prompt_management/generic_prompt_manager.py": {
+ "baseline": 51,
+ "slack": 26
+ },
+ "litellm/integrations/gitlab/__init__.py": {
+ "baseline": 12,
+ "slack": 6
+ },
+ "litellm/integrations/gitlab/gitlab_client.py": {
+ "baseline": 97,
+ "slack": 49
+ },
+ "litellm/integrations/gitlab/gitlab_prompt_manager.py": {
+ "baseline": 137,
+ "slack": 69
+ },
+ "litellm/integrations/greenscale.py": {
+ "baseline": 71,
+ "slack": 36
+ },
+ "litellm/integrations/helicone.py": {
+ "baseline": 191,
+ "slack": 96
+ },
+ "litellm/integrations/helicone_mock_client.py": {
+ "baseline": 4,
+ "slack": 2
+ },
+ "litellm/integrations/humanloop.py": {
+ "baseline": 47,
+ "slack": 24
+ },
+ "litellm/integrations/lago.py": {
+ "baseline": 123,
+ "slack": 62
+ },
+ "litellm/integrations/langfuse/langfuse.py": {
+ "baseline": 610,
+ "slack": 305
+ },
+ "litellm/integrations/langfuse/langfuse_handler.py": {
+ "baseline": 15,
+ "slack": 8
+ },
+ "litellm/integrations/langfuse/langfuse_mock_client.py": {
+ "baseline": 6,
+ "slack": 3
+ },
+ "litellm/integrations/langfuse/langfuse_otel.py": {
+ "baseline": 135,
+ "slack": 68
+ },
+ "litellm/integrations/langfuse/langfuse_otel_attributes.py": {
+ "baseline": 29,
+ "slack": 15
+ },
+ "litellm/integrations/langfuse/langfuse_prompt_management.py": {
+ "baseline": 120,
+ "slack": 60
+ },
+ "litellm/integrations/langsmith.py": {
+ "baseline": 245,
+ "slack": 123
+ },
+ "litellm/integrations/langsmith_mock_client.py": {
+ "baseline": 5,
+ "slack": 3
+ },
+ "litellm/integrations/langtrace.py": {
+ "baseline": 68,
+ "slack": 34
+ },
+ "litellm/integrations/levo/levo.py": {
+ "baseline": 10,
+ "slack": 5
+ },
+ "litellm/integrations/litellm_agent/litellm_agent_model_resolver.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/integrations/literal_ai.py": {
+ "baseline": 281,
+ "slack": 141
+ },
+ "litellm/integrations/logfire_logger.py": {
+ "baseline": 88,
+ "slack": 44
+ },
+ "litellm/integrations/lunary.py": {
+ "baseline": 126,
+ "slack": 63
+ },
+ "litellm/integrations/mavvrik_focus/mavvrik_focus_logger.py": {
+ "baseline": 32,
+ "slack": 16
+ },
+ "litellm/integrations/mlflow.py": {
+ "baseline": 239,
+ "slack": 120
+ },
+ "litellm/integrations/mock_client_factory.py": {
+ "baseline": 88,
+ "slack": 44
+ },
+ "litellm/integrations/newrelic/newrelic.py": {
+ "baseline": 274,
+ "slack": 137
+ },
+ "litellm/integrations/openmeter.py": {
+ "baseline": 87,
+ "slack": 44
+ },
+ "litellm/integrations/opentelemetry.py": {
+ "baseline": 1474,
+ "slack": 737
+ },
+ "litellm/integrations/opentelemetry_utils/base_otel_llm_obs_attributes.py": {
+ "baseline": 4,
+ "slack": 2
+ },
+ "litellm/integrations/opentelemetry_utils/gen_ai_semconv.py": {
+ "baseline": 64,
+ "slack": 32
+ },
+ "litellm/integrations/opik/opik.py": {
+ "baseline": 82,
+ "slack": 41
+ },
+ "litellm/integrations/opik/opik_payload_builder/api.py": {
+ "baseline": 53,
+ "slack": 27
+ },
+ "litellm/integrations/opik/opik_payload_builder/extractors.py": {
+ "baseline": 61,
+ "slack": 31
+ },
+ "litellm/integrations/opik/opik_payload_builder/payload_builders.py": {
+ "baseline": 18,
+ "slack": 9
+ },
+ "litellm/integrations/opik/opik_payload_builder/types.py": {
+ "baseline": 24,
+ "slack": 12
+ },
+ "litellm/integrations/opik/utils.py": {
+ "baseline": 76,
+ "slack": 38
+ },
+ "litellm/integrations/otel/logger.py": {
+ "baseline": 84,
+ "slack": 42
+ },
+ "litellm/integrations/otel/mappers/genai.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/integrations/otel/mappers/langfuse.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/integrations/otel/mappers/langtrace.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/integrations/otel/mappers/openinference.py": {
+ "baseline": 14,
+ "slack": 7
+ },
+ "litellm/integrations/otel/mappers/utils.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/integrations/otel/model/baggage.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/integrations/otel/model/config.py": {
+ "baseline": 5,
+ "slack": 3
+ },
+ "litellm/integrations/otel/model/metadata.py": {
+ "baseline": 42,
+ "slack": 21
+ },
+ "litellm/integrations/otel/model/payloads.py": {
+ "baseline": 67,
+ "slack": 34
+ },
+ "litellm/integrations/otel/model/spans.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/integrations/otel/model/utils.py": {
+ "baseline": 4,
+ "slack": 2
+ },
+ "litellm/integrations/otel/mount.py": {
+ "baseline": 13,
+ "slack": 7
+ },
+ "litellm/integrations/otel/plumbing/metrics.py": {
+ "baseline": 115,
+ "slack": 58
+ },
+ "litellm/integrations/otel/plumbing/providers.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/integrations/otel/plumbing/routing.py": {
+ "baseline": 5,
+ "slack": 3
+ },
+ "litellm/integrations/otel/presets/agentops.py": {
+ "baseline": 8,
+ "slack": 4
+ },
+ "litellm/integrations/otel/presets/arize.py": {
+ "baseline": 10,
+ "slack": 5
+ },
+ "litellm/integrations/otel/presets/langfuse.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/integrations/otel/presets/langtrace.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/integrations/otel/presets/levo.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/integrations/otel/presets/phoenix.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/integrations/otel/presets/weave.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/integrations/otel/runtime.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/integrations/posthog.py": {
+ "baseline": 349,
+ "slack": 175
+ },
+ "litellm/integrations/posthog_mock_client.py": {
+ "baseline": 4,
+ "slack": 2
+ },
+ "litellm/integrations/prometheus.py": {
+ "baseline": 1095,
+ "slack": 548
+ },
+ "litellm/integrations/prometheus_helpers/__init__.py": {
+ "baseline": 11,
+ "slack": 6
+ },
+ "litellm/integrations/prometheus_helpers/bounded_prometheus_series_tracker.py": {
+ "baseline": 4,
+ "slack": 2
+ },
+ "litellm/integrations/prometheus_helpers/prometheus_api.py": {
+ "baseline": 53,
+ "slack": 27
+ },
+ "litellm/integrations/prometheus_services.py": {
+ "baseline": 112,
+ "slack": 56
+ },
+ "litellm/integrations/prompt_layer.py": {
+ "baseline": 64,
+ "slack": 32
+ },
+ "litellm/integrations/prompt_management_base.py": {
+ "baseline": 27,
+ "slack": 14
+ },
+ "litellm/integrations/rubrik.py": {
+ "baseline": 205,
+ "slack": 103
+ },
+ "litellm/integrations/s3.py": {
+ "baseline": 120,
+ "slack": 60
+ },
+ "litellm/integrations/s3_v2.py": {
+ "baseline": 242,
+ "slack": 121
+ },
+ "litellm/integrations/sqs.py": {
+ "baseline": 120,
+ "slack": 60
+ },
+ "litellm/integrations/supabase.py": {
+ "baseline": 79,
+ "slack": 40
+ },
+ "litellm/integrations/traceloop.py": {
+ "baseline": 130,
+ "slack": 65
+ },
+ "litellm/integrations/vantage/vantage_logger.py": {
+ "baseline": 22,
+ "slack": 11
+ },
+ "litellm/integrations/vector_store_integrations/vector_store_pre_call_hook.py": {
+ "baseline": 75,
+ "slack": 38
+ },
+ "litellm/integrations/weave/weave_otel.py": {
+ "baseline": 108,
+ "slack": 54
+ },
+ "litellm/integrations/websearch_interception/handler.py": {
+ "baseline": 447,
+ "slack": 224
+ },
+ "litellm/integrations/websearch_interception/tools.py": {
+ "baseline": 36,
+ "slack": 18
+ },
+ "litellm/integrations/websearch_interception/transformation.py": {
+ "baseline": 185,
+ "slack": 93
+ },
+ "litellm/integrations/weights_biases.py": {
+ "baseline": 107,
+ "slack": 54
+ },
+ "litellm/interactions/agents/http_handler.py": {
+ "baseline": 170,
+ "slack": 85
+ },
+ "litellm/interactions/agents/main.py": {
+ "baseline": 194,
+ "slack": 97
+ },
+ "litellm/interactions/http_handler.py": {
+ "baseline": 158,
+ "slack": 79
+ },
+ "litellm/interactions/litellm_responses_transformation/handler.py": {
+ "baseline": 23,
+ "slack": 12
+ },
+ "litellm/interactions/litellm_responses_transformation/streaming_iterator.py": {
+ "baseline": 35,
+ "slack": 18
+ },
+ "litellm/interactions/litellm_responses_transformation/transformation.py": {
+ "baseline": 131,
+ "slack": 66
+ },
+ "litellm/interactions/main.py": {
+ "baseline": 153,
+ "slack": 77
+ },
+ "litellm/interactions/streaming_iterator.py": {
+ "baseline": 48,
+ "slack": 24
+ },
+ "litellm/interactions/utils.py": {
+ "baseline": 12,
+ "slack": 6
+ },
+ "litellm/litellm_core_utils/app_crypto.py": {
+ "baseline": 6,
+ "slack": 3
+ },
+ "litellm/litellm_core_utils/asyncify.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/litellm_core_utils/audio_utils/utils.py": {
+ "baseline": 19,
+ "slack": 10
+ },
+ "litellm/litellm_core_utils/cli_token_utils.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/litellm_core_utils/cloud_storage_security.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/litellm_core_utils/completion_timeout.py": {
+ "baseline": 5,
+ "slack": 3
+ },
+ "litellm/litellm_core_utils/core_helpers.py": {
+ "baseline": 192,
+ "slack": 96
+ },
+ "litellm/litellm_core_utils/coroutine_checker.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/litellm_core_utils/credential_accessor.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/litellm_core_utils/custom_logger_registry.py": {
+ "baseline": 6,
+ "slack": 3
+ },
+ "litellm/litellm_core_utils/dd_tracing.py": {
+ "baseline": 28,
+ "slack": 14
+ },
+ "litellm/litellm_core_utils/default_encoding.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/litellm_core_utils/dot_notation_indexing.py": {
+ "baseline": 54,
+ "slack": 27
+ },
+ "litellm/litellm_core_utils/duration_parser.py": {
+ "baseline": 24,
+ "slack": 12
+ },
+ "litellm/litellm_core_utils/exception_mapping_utils.py": {
+ "baseline": 2076,
+ "slack": 1038
+ },
+ "litellm/litellm_core_utils/fallback_utils.py": {
+ "baseline": 57,
+ "slack": 29
+ },
+ "litellm/litellm_core_utils/get_blog_posts.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/litellm_core_utils/get_litellm_params.py": {
+ "baseline": 45,
+ "slack": 23
+ },
+ "litellm/litellm_core_utils/get_llm_provider_logic.py": {
+ "baseline": 143,
+ "slack": 72
+ },
+ "litellm/litellm_core_utils/get_model_cost_map.py": {
+ "baseline": 47,
+ "slack": 24
+ },
+ "litellm/litellm_core_utils/get_provider_specific_headers.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/litellm_core_utils/get_supported_openai_params.py": {
+ "baseline": 67,
+ "slack": 34
+ },
+ "litellm/litellm_core_utils/health_check_helpers.py": {
+ "baseline": 73,
+ "slack": 37
+ },
+ "litellm/litellm_core_utils/health_check_utils.py": {
+ "baseline": 17,
+ "slack": 9
+ },
+ "litellm/litellm_core_utils/initialize_dynamic_callback_params.py": {
+ "baseline": 19,
+ "slack": 10
+ },
+ "litellm/litellm_core_utils/json_validation_rule.py": {
+ "baseline": 62,
+ "slack": 31
+ },
+ "litellm/litellm_core_utils/litellm_logging.py": {
+ "baseline": 2348,
+ "slack": 1174
+ },
+ "litellm/litellm_core_utils/llm_cost_calc/tool_call_cost_tracking.py": {
+ "baseline": 107,
+ "slack": 54
+ },
+ "litellm/litellm_core_utils/llm_cost_calc/usage_object_transformation.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/litellm_core_utils/llm_cost_calc/utils.py": {
+ "baseline": 55,
+ "slack": 28
+ },
+ "litellm/litellm_core_utils/llm_request_utils.py": {
+ "baseline": 37,
+ "slack": 19
+ },
+ "litellm/litellm_core_utils/llm_response_utils/convert_dict_to_response.py": {
+ "baseline": 336,
+ "slack": 168
+ },
+ "litellm/litellm_core_utils/llm_response_utils/get_api_base.py": {
+ "baseline": 6,
+ "slack": 3
+ },
+ "litellm/litellm_core_utils/llm_response_utils/get_formatted_prompt.py": {
+ "baseline": 27,
+ "slack": 14
+ },
+ "litellm/litellm_core_utils/llm_response_utils/get_headers.py": {
+ "baseline": 30,
+ "slack": 15
+ },
+ "litellm/litellm_core_utils/llm_response_utils/response_metadata.py": {
+ "baseline": 80,
+ "slack": 40
+ },
+ "litellm/litellm_core_utils/logging_callback_manager.py": {
+ "baseline": 90,
+ "slack": 45
+ },
+ "litellm/litellm_core_utils/logging_utils.py": {
+ "baseline": 181,
+ "slack": 91
+ },
+ "litellm/litellm_core_utils/logging_worker.py": {
+ "baseline": 103,
+ "slack": 52
+ },
+ "litellm/litellm_core_utils/model_param_helper.py": {
+ "baseline": 41,
+ "slack": 21
+ },
+ "litellm/litellm_core_utils/model_response_utils.py": {
+ "baseline": 51,
+ "slack": 26
+ },
+ "litellm/litellm_core_utils/prompt_templates/common_utils.py": {
+ "baseline": 362,
+ "slack": 181
+ },
+ "litellm/litellm_core_utils/prompt_templates/factory.py": {
+ "baseline": 1452,
+ "slack": 726
+ },
+ "litellm/litellm_core_utils/prompt_templates/huggingface_template_handler.py": {
+ "baseline": 30,
+ "slack": 15
+ },
+ "litellm/litellm_core_utils/prompt_templates/image_handling.py": {
+ "baseline": 20,
+ "slack": 10
+ },
+ "litellm/litellm_core_utils/realtime_streaming.py": {
+ "baseline": 631,
+ "slack": 316
+ },
+ "litellm/litellm_core_utils/redact_messages.py": {
+ "baseline": 195,
+ "slack": 98
+ },
+ "litellm/litellm_core_utils/rules.py": {
+ "baseline": 9,
+ "slack": 5
+ },
+ "litellm/litellm_core_utils/safe_json_dumps.py": {
+ "baseline": 64,
+ "slack": 32
+ },
+ "litellm/litellm_core_utils/safe_json_loads.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/litellm_core_utils/sensitive_data_masker.py": {
+ "baseline": 64,
+ "slack": 32
+ },
+ "litellm/litellm_core_utils/specialty_caches/dynamic_logging_cache.py": {
+ "baseline": 13,
+ "slack": 7
+ },
+ "litellm/litellm_core_utils/streaming_chunk_builder_utils.py": {
+ "baseline": 313,
+ "slack": 157
+ },
+ "litellm/litellm_core_utils/streaming_handler.py": {
+ "baseline": 1020,
+ "slack": 510
+ },
+ "litellm/litellm_core_utils/token_counter.py": {
+ "baseline": 249,
+ "slack": 125
+ },
+ "litellm/litellm_core_utils/url_utils.py": {
+ "baseline": 46,
+ "slack": 23
+ },
+ "litellm/llms/__init__.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/llms/a2a/chat/guardrail_translation/handler.py": {
+ "baseline": 158,
+ "slack": 79
+ },
+ "litellm/llms/a2a/chat/streaming_iterator.py": {
+ "baseline": 13,
+ "slack": 7
+ },
+ "litellm/llms/a2a/chat/transformation.py": {
+ "baseline": 54,
+ "slack": 27
+ },
+ "litellm/llms/a2a/common_utils.py": {
+ "baseline": 35,
+ "slack": 18
+ },
+ "litellm/llms/ai21/chat/transformation.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/llms/aiml/image_generation/cost_calculator.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/llms/aiml/image_generation/transformation.py": {
+ "baseline": 61,
+ "slack": 31
+ },
+ "litellm/llms/aiohttp_openai/chat/transformation.py": {
+ "baseline": 11,
+ "slack": 6
+ },
+ "litellm/llms/amazon_nova/chat/transformation.py": {
+ "baseline": 11,
+ "slack": 6
+ },
+ "litellm/llms/anthropic/batches/handler.py": {
+ "baseline": 30,
+ "slack": 15
+ },
+ "litellm/llms/anthropic/batches/transformation.py": {
+ "baseline": 55,
+ "slack": 28
+ },
+ "litellm/llms/anthropic/chat/guardrail_translation/handler.py": {
+ "baseline": 181,
+ "slack": 91
+ },
+ "litellm/llms/anthropic/chat/handler.py": {
+ "baseline": 390,
+ "slack": 195
+ },
+ "litellm/llms/anthropic/chat/transformation.py": {
+ "baseline": 770,
+ "slack": 385
+ },
+ "litellm/llms/anthropic/common_utils.py": {
+ "baseline": 278,
+ "slack": 139
+ },
+ "litellm/llms/anthropic/completion/transformation.py": {
+ "baseline": 86,
+ "slack": 43
+ },
+ "litellm/llms/anthropic/cost_calculation.py": {
+ "baseline": 11,
+ "slack": 6
+ },
+ "litellm/llms/anthropic/count_tokens/handler.py": {
+ "baseline": 19,
+ "slack": 10
+ },
+ "litellm/llms/anthropic/count_tokens/token_counter.py": {
+ "baseline": 17,
+ "slack": 9
+ },
+ "litellm/llms/anthropic/count_tokens/transformation.py": {
+ "baseline": 19,
+ "slack": 10
+ },
+ "litellm/llms/anthropic/experimental_pass_through/adapters/handler.py": {
+ "baseline": 228,
+ "slack": 114
+ },
+ "litellm/llms/anthropic/experimental_pass_through/adapters/streaming_iterator.py": {
+ "baseline": 434,
+ "slack": 217
+ },
+ "litellm/llms/anthropic/experimental_pass_through/adapters/transformation.py": {
+ "baseline": 328,
+ "slack": 164
+ },
+ "litellm/llms/anthropic/experimental_pass_through/context_management/dispatcher.py": {
+ "baseline": 57,
+ "slack": 29
+ },
+ "litellm/llms/anthropic/experimental_pass_through/context_management/editors/clear_tool_uses.py": {
+ "baseline": 100,
+ "slack": 50
+ },
+ "litellm/llms/anthropic/experimental_pass_through/context_management/editors/compact.py": {
+ "baseline": 420,
+ "slack": 210
+ },
+ "litellm/llms/anthropic/experimental_pass_through/context_management/placeholders.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/llms/anthropic/experimental_pass_through/context_management/result.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/llms/anthropic/experimental_pass_through/messages/agentic_streaming_iterator.py": {
+ "baseline": 193,
+ "slack": 97
+ },
+ "litellm/llms/anthropic/experimental_pass_through/messages/fake_stream_iterator.py": {
+ "baseline": 78,
+ "slack": 39
+ },
+ "litellm/llms/anthropic/experimental_pass_through/messages/handler.py": {
+ "baseline": 148,
+ "slack": 74
+ },
+ "litellm/llms/anthropic/experimental_pass_through/messages/interceptors/advisor.py": {
+ "baseline": 150,
+ "slack": 75
+ },
+ "litellm/llms/anthropic/experimental_pass_through/messages/streaming_iterator.py": {
+ "baseline": 19,
+ "slack": 10
+ },
+ "litellm/llms/anthropic/experimental_pass_through/messages/transformation.py": {
+ "baseline": 162,
+ "slack": 81
+ },
+ "litellm/llms/anthropic/experimental_pass_through/messages/utils.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/llms/anthropic/experimental_pass_through/responses_adapters/handler.py": {
+ "baseline": 96,
+ "slack": 48
+ },
+ "litellm/llms/anthropic/experimental_pass_through/responses_adapters/streaming_iterator.py": {
+ "baseline": 187,
+ "slack": 94
+ },
+ "litellm/llms/anthropic/experimental_pass_through/responses_adapters/transformation.py": {
+ "baseline": 250,
+ "slack": 125
+ },
+ "litellm/llms/anthropic/files/handler.py": {
+ "baseline": 54,
+ "slack": 27
+ },
+ "litellm/llms/anthropic/files/transformation.py": {
+ "baseline": 47,
+ "slack": 24
+ },
+ "litellm/llms/anthropic/skills/transformation.py": {
+ "baseline": 40,
+ "slack": 20
+ },
+ "litellm/llms/apiserpent/search/defaults.py": {
+ "baseline": 19,
+ "slack": 10
+ },
+ "litellm/llms/apiserpent/search/transformation.py": {
+ "baseline": 54,
+ "slack": 27
+ },
+ "litellm/llms/aws_polly/text_to_speech/transformation.py": {
+ "baseline": 74,
+ "slack": 37
+ },
+ "litellm/llms/azure/assistants.py": {
+ "baseline": 114,
+ "slack": 57
+ },
+ "litellm/llms/azure/audio_transcription/transformation.py": {
+ "baseline": 37,
+ "slack": 19
+ },
+ "litellm/llms/azure/audio_transcriptions.py": {
+ "baseline": 47,
+ "slack": 24
+ },
+ "litellm/llms/azure/azure.py": {
+ "baseline": 459,
+ "slack": 230
+ },
+ "litellm/llms/azure/batches/handler.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/llms/azure/chat/gpt_5_transformation.py": {
+ "baseline": 29,
+ "slack": 15
+ },
+ "litellm/llms/azure/chat/gpt_transformation.py": {
+ "baseline": 44,
+ "slack": 22
+ },
+ "litellm/llms/azure/chat/o_series_handler.py": {
+ "baseline": 12,
+ "slack": 6
+ },
+ "litellm/llms/azure/chat/o_series_transformation.py": {
+ "baseline": 14,
+ "slack": 7
+ },
+ "litellm/llms/azure/common_utils.py": {
+ "baseline": 221,
+ "slack": 111
+ },
+ "litellm/llms/azure/completion/handler.py": {
+ "baseline": 129,
+ "slack": 65
+ },
+ "litellm/llms/azure/completion/transformation.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/llms/azure/containers/transformation.py": {
+ "baseline": 6,
+ "slack": 3
+ },
+ "litellm/llms/azure/exception_mapping.py": {
+ "baseline": 36,
+ "slack": 18
+ },
+ "litellm/llms/azure/files/handler.py": {
+ "baseline": 27,
+ "slack": 14
+ },
+ "litellm/llms/azure/fine_tuning/handler.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/llms/azure/image_edit/transformation.py": {
+ "baseline": 19,
+ "slack": 10
+ },
+ "litellm/llms/azure/image_generation/http_utils.py": {
+ "baseline": 8,
+ "slack": 4
+ },
+ "litellm/llms/azure/passthrough/transformation.py": {
+ "baseline": 16,
+ "slack": 8
+ },
+ "litellm/llms/azure/realtime/handler.py": {
+ "baseline": 23,
+ "slack": 12
+ },
+ "litellm/llms/azure/realtime/http_transformation.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/llms/azure/responses/o_series_transformation.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/llms/azure/responses/transformation.py": {
+ "baseline": 72,
+ "slack": 36
+ },
+ "litellm/llms/azure/text_to_speech/transformation.py": {
+ "baseline": 61,
+ "slack": 31
+ },
+ "litellm/llms/azure/vector_stores/transformation.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/llms/azure/videos/transformation.py": {
+ "baseline": 6,
+ "slack": 3
+ },
+ "litellm/llms/azure_ai/agents/handler.py": {
+ "baseline": 293,
+ "slack": 147
+ },
+ "litellm/llms/azure_ai/agents/transformation.py": {
+ "baseline": 49,
+ "slack": 25
+ },
+ "litellm/llms/azure_ai/anthropic/count_tokens/handler.py": {
+ "baseline": 20,
+ "slack": 10
+ },
+ "litellm/llms/azure_ai/anthropic/count_tokens/token_counter.py": {
+ "baseline": 22,
+ "slack": 11
+ },
+ "litellm/llms/azure_ai/anthropic/count_tokens/transformation.py": {
+ "baseline": 8,
+ "slack": 4
+ },
+ "litellm/llms/azure_ai/anthropic/handler.py": {
+ "baseline": 101,
+ "slack": 51
+ },
+ "litellm/llms/azure_ai/anthropic/messages_transformation.py": {
+ "baseline": 44,
+ "slack": 22
+ },
+ "litellm/llms/azure_ai/anthropic/transformation.py": {
+ "baseline": 39,
+ "slack": 20
+ },
+ "litellm/llms/azure_ai/azure_model_router/transformation.py": {
+ "baseline": 9,
+ "slack": 5
+ },
+ "litellm/llms/azure_ai/chat/transformation.py": {
+ "baseline": 80,
+ "slack": 40
+ },
+ "litellm/llms/azure_ai/embed/cohere_transformation.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/llms/azure_ai/embed/handler.py": {
+ "baseline": 79,
+ "slack": 40
+ },
+ "litellm/llms/azure_ai/image_edit/flux2_transformation.py": {
+ "baseline": 26,
+ "slack": 13
+ },
+ "litellm/llms/azure_ai/image_edit/mai_transformation.py": {
+ "baseline": 47,
+ "slack": 24
+ },
+ "litellm/llms/azure_ai/image_edit/transformation.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/llms/azure_ai/image_generation/cost_calculator.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/llms/azure_ai/image_generation/mai_transformation.py": {
+ "baseline": 88,
+ "slack": 44
+ },
+ "litellm/llms/azure_ai/ocr/document_intelligence/transformation.py": {
+ "baseline": 126,
+ "slack": 63
+ },
+ "litellm/llms/azure_ai/ocr/transformation.py": {
+ "baseline": 12,
+ "slack": 6
+ },
+ "litellm/llms/azure_ai/rerank/transformation.py": {
+ "baseline": 12,
+ "slack": 6
+ },
+ "litellm/llms/azure_ai/vector_stores/transformation.py": {
+ "baseline": 54,
+ "slack": 27
+ },
+ "litellm/llms/base.py": {
+ "baseline": 10,
+ "slack": 5
+ },
+ "litellm/llms/base_llm/agents/transformation.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/llms/base_llm/anthropic_messages/transformation.py": {
+ "baseline": 5,
+ "slack": 3
+ },
+ "litellm/llms/base_llm/audio_transcription/transformation.py": {
+ "baseline": 10,
+ "slack": 5
+ },
+ "litellm/llms/base_llm/base_model_iterator.py": {
+ "baseline": 86,
+ "slack": 43
+ },
+ "litellm/llms/base_llm/base_utils.py": {
+ "baseline": 76,
+ "slack": 38
+ },
+ "litellm/llms/base_llm/batches/transformation.py": {
+ "baseline": 13,
+ "slack": 7
+ },
+ "litellm/llms/base_llm/chat/transformation.py": {
+ "baseline": 63,
+ "slack": 32
+ },
+ "litellm/llms/base_llm/completion/transformation.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/llms/base_llm/containers/transformation.py": {
+ "baseline": 15,
+ "slack": 8
+ },
+ "litellm/llms/base_llm/embedding/transformation.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/llms/base_llm/evals/transformation.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/llms/base_llm/files/azure_blob_storage_backend.py": {
+ "baseline": 54,
+ "slack": 27
+ },
+ "litellm/llms/base_llm/files/transformation.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/llms/base_llm/google_genai/transformation.py": {
+ "baseline": 14,
+ "slack": 7
+ },
+ "litellm/llms/base_llm/guardrail_translation/base_translation.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/llms/base_llm/guardrail_translation/utils.py": {
+ "baseline": 10,
+ "slack": 5
+ },
+ "litellm/llms/base_llm/image_edit/transformation.py": {
+ "baseline": 16,
+ "slack": 8
+ },
+ "litellm/llms/base_llm/image_generation/transformation.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/llms/base_llm/image_variations/transformation.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/llms/base_llm/interactions/transformation.py": {
+ "baseline": 15,
+ "slack": 8
+ },
+ "litellm/llms/base_llm/managed_resources/base_managed_resource.py": {
+ "baseline": 111,
+ "slack": 56
+ },
+ "litellm/llms/base_llm/managed_resources/isolation.py": {
+ "baseline": 13,
+ "slack": 7
+ },
+ "litellm/llms/base_llm/managed_resources/utils.py": {
+ "baseline": 17,
+ "slack": 9
+ },
+ "litellm/llms/base_llm/ocr/transformation.py": {
+ "baseline": 13,
+ "slack": 7
+ },
+ "litellm/llms/base_llm/passthrough/transformation.py": {
+ "baseline": 4,
+ "slack": 2
+ },
+ "litellm/llms/base_llm/realtime/http_transformation.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/llms/base_llm/realtime/transformation.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/llms/base_llm/rerank/transformation.py": {
+ "baseline": 5,
+ "slack": 3
+ },
+ "litellm/llms/base_llm/responses/transformation.py": {
+ "baseline": 28,
+ "slack": 14
+ },
+ "litellm/llms/base_llm/search/transformation.py": {
+ "baseline": 8,
+ "slack": 4
+ },
+ "litellm/llms/base_llm/skills/transformation.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/llms/base_llm/text_to_speech/transformation.py": {
+ "baseline": 19,
+ "slack": 10
+ },
+ "litellm/llms/base_llm/vector_store/transformation.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/llms/base_llm/vector_store_files/transformation.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/llms/base_llm/videos/transformation.py": {
+ "baseline": 15,
+ "slack": 8
+ },
+ "litellm/llms/baseten/chat.py": {
+ "baseline": 20,
+ "slack": 10
+ },
+ "litellm/llms/bedrock/base_aws_llm.py": {
+ "baseline": 341,
+ "slack": 171
+ },
+ "litellm/llms/bedrock/batches/handler.py": {
+ "baseline": 78,
+ "slack": 39
+ },
+ "litellm/llms/bedrock/batches/transformation.py": {
+ "baseline": 144,
+ "slack": 72
+ },
+ "litellm/llms/bedrock/chat/agentcore/transformation.py": {
+ "baseline": 195,
+ "slack": 98
+ },
+ "litellm/llms/bedrock/chat/converse_handler.py": {
+ "baseline": 152,
+ "slack": 76
+ },
+ "litellm/llms/bedrock/chat/converse_transformation.py": {
+ "baseline": 527,
+ "slack": 264
+ },
+ "litellm/llms/bedrock/chat/invoke_agent/transformation.py": {
+ "baseline": 65,
+ "slack": 33
+ },
+ "litellm/llms/bedrock/chat/invoke_handler.py": {
+ "baseline": 634,
+ "slack": 317
+ },
+ "litellm/llms/bedrock/chat/invoke_transformations/amazon_ai21_transformation.py": {
+ "baseline": 36,
+ "slack": 18
+ },
+ "litellm/llms/bedrock/chat/invoke_transformations/amazon_cohere_transformation.py": {
+ "baseline": 22,
+ "slack": 11
+ },
+ "litellm/llms/bedrock/chat/invoke_transformations/amazon_deepseek_transformation.py": {
+ "baseline": 25,
+ "slack": 13
+ },
+ "litellm/llms/bedrock/chat/invoke_transformations/amazon_llama_transformation.py": {
+ "baseline": 36,
+ "slack": 18
+ },
+ "litellm/llms/bedrock/chat/invoke_transformations/amazon_mistral_transformation.py": {
+ "baseline": 45,
+ "slack": 23
+ },
+ "litellm/llms/bedrock/chat/invoke_transformations/amazon_moonshot_transformation.py": {
+ "baseline": 25,
+ "slack": 13
+ },
+ "litellm/llms/bedrock/chat/invoke_transformations/amazon_nova_transformation.py": {
+ "baseline": 18,
+ "slack": 9
+ },
+ "litellm/llms/bedrock/chat/invoke_transformations/amazon_openai_transformation.py": {
+ "baseline": 24,
+ "slack": 12
+ },
+ "litellm/llms/bedrock/chat/invoke_transformations/amazon_qwen2_transformation.py": {
+ "baseline": 15,
+ "slack": 8
+ },
+ "litellm/llms/bedrock/chat/invoke_transformations/amazon_qwen3_transformation.py": {
+ "baseline": 72,
+ "slack": 36
+ },
+ "litellm/llms/bedrock/chat/invoke_transformations/amazon_titan_transformation.py": {
+ "baseline": 46,
+ "slack": 23
+ },
+ "litellm/llms/bedrock/chat/invoke_transformations/amazon_twelvelabs_pegasus_transformation.py": {
+ "baseline": 102,
+ "slack": 51
+ },
+ "litellm/llms/bedrock/chat/invoke_transformations/anthropic_claude2_transformation.py": {
+ "baseline": 39,
+ "slack": 20
+ },
+ "litellm/llms/bedrock/chat/invoke_transformations/anthropic_claude3_transformation.py": {
+ "baseline": 139,
+ "slack": 70
+ },
+ "litellm/llms/bedrock/chat/invoke_transformations/base_invoke_transformation.py": {
+ "baseline": 192,
+ "slack": 96
+ },
+ "litellm/llms/bedrock/chat/mantle/transformation.py": {
+ "baseline": 24,
+ "slack": 12
+ },
+ "litellm/llms/bedrock/claude_platform/common_utils.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/llms/bedrock/claude_platform/messages_transformation.py": {
+ "baseline": 16,
+ "slack": 8
+ },
+ "litellm/llms/bedrock/claude_platform/transformation.py": {
+ "baseline": 18,
+ "slack": 9
+ },
+ "litellm/llms/bedrock/common_utils.py": {
+ "baseline": 279,
+ "slack": 140
+ },
+ "litellm/llms/bedrock/count_tokens/bedrock_token_counter.py": {
+ "baseline": 20,
+ "slack": 10
+ },
+ "litellm/llms/bedrock/count_tokens/handler.py": {
+ "baseline": 31,
+ "slack": 16
+ },
+ "litellm/llms/bedrock/count_tokens/transformation.py": {
+ "baseline": 106,
+ "slack": 53
+ },
+ "litellm/llms/bedrock/embed/amazon_nova_transformation.py": {
+ "baseline": 96,
+ "slack": 48
+ },
+ "litellm/llms/bedrock/embed/amazon_titan_g1_transformation.py": {
+ "baseline": 24,
+ "slack": 12
+ },
+ "litellm/llms/bedrock/embed/amazon_titan_multimodal_transformation.py": {
+ "baseline": 22,
+ "slack": 11
+ },
+ "litellm/llms/bedrock/embed/amazon_titan_v2_transformation.py": {
+ "baseline": 46,
+ "slack": 23
+ },
+ "litellm/llms/bedrock/embed/cohere_transformation.py": {
+ "baseline": 15,
+ "slack": 8
+ },
+ "litellm/llms/bedrock/embed/embedding.py": {
+ "baseline": 225,
+ "slack": 113
+ },
+ "litellm/llms/bedrock/embed/twelvelabs_marengo_transformation.py": {
+ "baseline": 57,
+ "slack": 29
+ },
+ "litellm/llms/bedrock/files/handler.py": {
+ "baseline": 33,
+ "slack": 17
+ },
+ "litellm/llms/bedrock/files/transformation.py": {
+ "baseline": 218,
+ "slack": 109
+ },
+ "litellm/llms/bedrock/image_edit/amazon_nova_canvas_image_edit_transformation.py": {
+ "baseline": 156,
+ "slack": 78
+ },
+ "litellm/llms/bedrock/image_edit/handler.py": {
+ "baseline": 56,
+ "slack": 28
+ },
+ "litellm/llms/bedrock/image_edit/stability_transformation.py": {
+ "baseline": 87,
+ "slack": 44
+ },
+ "litellm/llms/bedrock/image_generation/amazon_nova_canvas_transformation.py": {
+ "baseline": 79,
+ "slack": 40
+ },
+ "litellm/llms/bedrock/image_generation/amazon_stability1_transformation.py": {
+ "baseline": 54,
+ "slack": 27
+ },
+ "litellm/llms/bedrock/image_generation/amazon_stability3_transformation.py": {
+ "baseline": 19,
+ "slack": 10
+ },
+ "litellm/llms/bedrock/image_generation/amazon_titan_transformation.py": {
+ "baseline": 64,
+ "slack": 32
+ },
+ "litellm/llms/bedrock/image_generation/cost_calculator.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/llms/bedrock/image_generation/image_handler.py": {
+ "baseline": 59,
+ "slack": 30
+ },
+ "litellm/llms/bedrock/messages/invoke_transformations/anthropic_claude3_transformation.py": {
+ "baseline": 237,
+ "slack": 119
+ },
+ "litellm/llms/bedrock/messages/mantle_transformation.py": {
+ "baseline": 18,
+ "slack": 9
+ },
+ "litellm/llms/bedrock/passthrough/guardrail_translation/handler.py": {
+ "baseline": 337,
+ "slack": 169
+ },
+ "litellm/llms/bedrock/passthrough/transformation.py": {
+ "baseline": 36,
+ "slack": 18
+ },
+ "litellm/llms/bedrock/realtime/handler.py": {
+ "baseline": 58,
+ "slack": 29
+ },
+ "litellm/llms/bedrock/realtime/transformation.py": {
+ "baseline": 293,
+ "slack": 147
+ },
+ "litellm/llms/bedrock/rerank/handler.py": {
+ "baseline": 40,
+ "slack": 20
+ },
+ "litellm/llms/bedrock/rerank/transformation.py": {
+ "baseline": 18,
+ "slack": 9
+ },
+ "litellm/llms/bedrock/vector_stores/transformation.py": {
+ "baseline": 123,
+ "slack": 62
+ },
+ "litellm/llms/bedrock_mantle/chat/transformation.py": {
+ "baseline": 15,
+ "slack": 8
+ },
+ "litellm/llms/bedrock_mantle/responses/transformation.py": {
+ "baseline": 63,
+ "slack": 32
+ },
+ "litellm/llms/black_forest_labs/image_edit/handler.py": {
+ "baseline": 126,
+ "slack": 63
+ },
+ "litellm/llms/black_forest_labs/image_edit/transformation.py": {
+ "baseline": 45,
+ "slack": 23
+ },
+ "litellm/llms/black_forest_labs/image_generation/handler.py": {
+ "baseline": 130,
+ "slack": 65
+ },
+ "litellm/llms/black_forest_labs/image_generation/transformation.py": {
+ "baseline": 49,
+ "slack": 25
+ },
+ "litellm/llms/brave/search/transformation.py": {
+ "baseline": 71,
+ "slack": 36
+ },
+ "litellm/llms/bytez/chat/transformation.py": {
+ "baseline": 128,
+ "slack": 64
+ },
+ "litellm/llms/cerebras/chat.py": {
+ "baseline": 19,
+ "slack": 10
+ },
+ "litellm/llms/chatgpt/authenticator.py": {
+ "baseline": 107,
+ "slack": 54
+ },
+ "litellm/llms/chatgpt/chat/streaming_utils.py": {
+ "baseline": 40,
+ "slack": 20
+ },
+ "litellm/llms/chatgpt/chat/transformation.py": {
+ "baseline": 15,
+ "slack": 8
+ },
+ "litellm/llms/chatgpt/common_utils.py": {
+ "baseline": 29,
+ "slack": 15
+ },
+ "litellm/llms/chatgpt/responses/transformation.py": {
+ "baseline": 105,
+ "slack": 53
+ },
+ "litellm/llms/clarifai/chat/transformation.py": {
+ "baseline": 16,
+ "slack": 8
+ },
+ "litellm/llms/cloudflare/chat/transformation.py": {
+ "baseline": 63,
+ "slack": 32
+ },
+ "litellm/llms/codestral/completion/handler.py": {
+ "baseline": 128,
+ "slack": 64
+ },
+ "litellm/llms/codestral/completion/transformation.py": {
+ "baseline": 49,
+ "slack": 25
+ },
+ "litellm/llms/cohere/chat/transformation.py": {
+ "baseline": 113,
+ "slack": 57
+ },
+ "litellm/llms/cohere/chat/v2_transformation.py": {
+ "baseline": 97,
+ "slack": 49
+ },
+ "litellm/llms/cohere/common_utils.py": {
+ "baseline": 165,
+ "slack": 83
+ },
+ "litellm/llms/cohere/embed/handler.py": {
+ "baseline": 71,
+ "slack": 36
+ },
+ "litellm/llms/cohere/embed/transformation.py": {
+ "baseline": 56,
+ "slack": 28
+ },
+ "litellm/llms/cohere/embed/v1_transformation.py": {
+ "baseline": 52,
+ "slack": 26
+ },
+ "litellm/llms/cohere/rerank/guardrail_translation/handler.py": {
+ "baseline": 16,
+ "slack": 8
+ },
+ "litellm/llms/cohere/rerank/transformation.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/llms/cohere/rerank_v2/transformation.py": {
+ "baseline": 12,
+ "slack": 6
+ },
+ "litellm/llms/cometapi/chat/transformation.py": {
+ "baseline": 38,
+ "slack": 19
+ },
+ "litellm/llms/cometapi/embed/transformation.py": {
+ "baseline": 22,
+ "slack": 11
+ },
+ "litellm/llms/cometapi/image_generation/cost_calculator.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/llms/cometapi/image_generation/transformation.py": {
+ "baseline": 23,
+ "slack": 12
+ },
+ "litellm/llms/compactifai/chat/transformation.py": {
+ "baseline": 17,
+ "slack": 9
+ },
+ "litellm/llms/custom_httpx/aiohttp_handler.py": {
+ "baseline": 187,
+ "slack": 94
+ },
+ "litellm/llms/custom_httpx/aiohttp_transport.py": {
+ "baseline": 40,
+ "slack": 20
+ },
+ "litellm/llms/custom_httpx/async_client_cleanup.py": {
+ "baseline": 42,
+ "slack": 21
+ },
+ "litellm/llms/custom_httpx/container_handler.py": {
+ "baseline": 169,
+ "slack": 85
+ },
+ "litellm/llms/custom_httpx/http_handler.py": {
+ "baseline": 339,
+ "slack": 170
+ },
+ "litellm/llms/custom_httpx/httpx_handler.py": {
+ "baseline": 22,
+ "slack": 11
+ },
+ "litellm/llms/custom_httpx/llm_http_handler.py": {
+ "baseline": 3900,
+ "slack": 1950
+ },
+ "litellm/llms/custom_httpx/mock_transport.py": {
+ "baseline": 13,
+ "slack": 7
+ },
+ "litellm/llms/custom_llm.py": {
+ "baseline": 10,
+ "slack": 5
+ },
+ "litellm/llms/dashscope/chat/transformation.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/llms/dashscope/common_utils.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/llms/dashscope/cost_calculator.py": {
+ "baseline": 49,
+ "slack": 25
+ },
+ "litellm/llms/dashscope/embed/transformation.py": {
+ "baseline": 44,
+ "slack": 22
+ },
+ "litellm/llms/dashscope/image_generation/transformation.py": {
+ "baseline": 48,
+ "slack": 24
+ },
+ "litellm/llms/dashscope/rerank/transformation.py": {
+ "baseline": 60,
+ "slack": 30
+ },
+ "litellm/llms/databricks/chat/transformation.py": {
+ "baseline": 168,
+ "slack": 84
+ },
+ "litellm/llms/databricks/common_utils.py": {
+ "baseline": 58,
+ "slack": 29
+ },
+ "litellm/llms/databricks/cost_calculator.py": {
+ "baseline": 4,
+ "slack": 2
+ },
+ "litellm/llms/databricks/embed/handler.py": {
+ "baseline": 12,
+ "slack": 6
+ },
+ "litellm/llms/databricks/embed/transformation.py": {
+ "baseline": 19,
+ "slack": 10
+ },
+ "litellm/llms/databricks/responses/transformation.py": {
+ "baseline": 9,
+ "slack": 5
+ },
+ "litellm/llms/databricks/streaming_utils.py": {
+ "baseline": 75,
+ "slack": 38
+ },
+ "litellm/llms/dataforseo/search/transformation.py": {
+ "baseline": 52,
+ "slack": 26
+ },
+ "litellm/llms/deepgram/audio_transcription/transformation.py": {
+ "baseline": 62,
+ "slack": 31
+ },
+ "litellm/llms/deepinfra/chat/transformation.py": {
+ "baseline": 42,
+ "slack": 21
+ },
+ "litellm/llms/deepinfra/rerank/transformation.py": {
+ "baseline": 68,
+ "slack": 34
+ },
+ "litellm/llms/deepseek/chat/transformation.py": {
+ "baseline": 51,
+ "slack": 26
+ },
+ "litellm/llms/deepseek/messages/transformation.py": {
+ "baseline": 35,
+ "slack": 18
+ },
+ "litellm/llms/deprecated_providers/aleph_alpha.py": {
+ "baseline": 102,
+ "slack": 51
+ },
+ "litellm/llms/deprecated_providers/palm.py": {
+ "baseline": 75,
+ "slack": 38
+ },
+ "litellm/llms/docker_model_runner/chat/transformation.py": {
+ "baseline": 15,
+ "slack": 8
+ },
+ "litellm/llms/duckduckgo/search/transformation.py": {
+ "baseline": 67,
+ "slack": 34
+ },
+ "litellm/llms/elevenlabs/audio_transcription/transformation.py": {
+ "baseline": 44,
+ "slack": 22
+ },
+ "litellm/llms/elevenlabs/text_to_speech/transformation.py": {
+ "baseline": 94,
+ "slack": 47
+ },
+ "litellm/llms/exa_ai/search/transformation.py": {
+ "baseline": 40,
+ "slack": 20
+ },
+ "litellm/llms/fal_ai/cost_calculator.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/llms/fal_ai/image_generation/bria_transformation.py": {
+ "baseline": 27,
+ "slack": 14
+ },
+ "litellm/llms/fal_ai/image_generation/bytedance_transformation.py": {
+ "baseline": 25,
+ "slack": 13
+ },
+ "litellm/llms/fal_ai/image_generation/flux_pro_v11_transformation.py": {
+ "baseline": 25,
+ "slack": 13
+ },
+ "litellm/llms/fal_ai/image_generation/flux_pro_v11_ultra_transformation.py": {
+ "baseline": 39,
+ "slack": 20
+ },
+ "litellm/llms/fal_ai/image_generation/flux_schnell_transformation.py": {
+ "baseline": 25,
+ "slack": 13
+ },
+ "litellm/llms/fal_ai/image_generation/ideogram_v3_transformation.py": {
+ "baseline": 41,
+ "slack": 21
+ },
+ "litellm/llms/fal_ai/image_generation/imagen4_transformation.py": {
+ "baseline": 32,
+ "slack": 16
+ },
+ "litellm/llms/fal_ai/image_generation/nano_banana_transformation.py": {
+ "baseline": 18,
+ "slack": 9
+ },
+ "litellm/llms/fal_ai/image_generation/recraft_v3_transformation.py": {
+ "baseline": 32,
+ "slack": 16
+ },
+ "litellm/llms/fal_ai/image_generation/stable_diffusion_transformation.py": {
+ "baseline": 41,
+ "slack": 21
+ },
+ "litellm/llms/fal_ai/image_generation/transformation.py": {
+ "baseline": 25,
+ "slack": 13
+ },
+ "litellm/llms/fastcrw/search/transformation.py": {
+ "baseline": 27,
+ "slack": 14
+ },
+ "litellm/llms/featherless_ai/chat/transformation.py": {
+ "baseline": 34,
+ "slack": 17
+ },
+ "litellm/llms/firecrawl/search/transformation.py": {
+ "baseline": 55,
+ "slack": 28
+ },
+ "litellm/llms/fireworks_ai/chat/transformation.py": {
+ "baseline": 124,
+ "slack": 62
+ },
+ "litellm/llms/fireworks_ai/common_utils.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/llms/fireworks_ai/completion/transformation.py": {
+ "baseline": 14,
+ "slack": 7
+ },
+ "litellm/llms/fireworks_ai/cost_calculator.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/llms/fireworks_ai/embed/fireworks_ai_transformation.py": {
+ "baseline": 14,
+ "slack": 7
+ },
+ "litellm/llms/fireworks_ai/rerank/transformation.py": {
+ "baseline": 52,
+ "slack": 26
+ },
+ "litellm/llms/gemini/agents/transformation.py": {
+ "baseline": 58,
+ "slack": 29
+ },
+ "litellm/llms/gemini/chat/transformation.py": {
+ "baseline": 26,
+ "slack": 13
+ },
+ "litellm/llms/gemini/common_utils.py": {
+ "baseline": 158,
+ "slack": 79
+ },
+ "litellm/llms/gemini/count_tokens/handler.py": {
+ "baseline": 37,
+ "slack": 19
+ },
+ "litellm/llms/gemini/files/transformation.py": {
+ "baseline": 40,
+ "slack": 20
+ },
+ "litellm/llms/gemini/google_genai/transformation.py": {
+ "baseline": 84,
+ "slack": 42
+ },
+ "litellm/llms/gemini/image_edit/cost_calculator.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/llms/gemini/image_edit/transformation.py": {
+ "baseline": 44,
+ "slack": 22
+ },
+ "litellm/llms/gemini/image_generation/cost_calculator.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/llms/gemini/image_generation/transformation.py": {
+ "baseline": 52,
+ "slack": 26
+ },
+ "litellm/llms/gemini/image_usage_transformation.py": {
+ "baseline": 31,
+ "slack": 16
+ },
+ "litellm/llms/gemini/interactions/transformation.py": {
+ "baseline": 92,
+ "slack": 46
+ },
+ "litellm/llms/gemini/realtime/transformation.py": {
+ "baseline": 324,
+ "slack": 162
+ },
+ "litellm/llms/gemini/vector_stores/transformation.py": {
+ "baseline": 97,
+ "slack": 49
+ },
+ "litellm/llms/gemini/videos/transformation.py": {
+ "baseline": 77,
+ "slack": 39
+ },
+ "litellm/llms/gigachat/authenticator.py": {
+ "baseline": 42,
+ "slack": 21
+ },
+ "litellm/llms/gigachat/chat/streaming.py": {
+ "baseline": 32,
+ "slack": 16
+ },
+ "litellm/llms/gigachat/chat/transformation.py": {
+ "baseline": 157,
+ "slack": 79
+ },
+ "litellm/llms/gigachat/embedding/transformation.py": {
+ "baseline": 34,
+ "slack": 17
+ },
+ "litellm/llms/gigachat/file_handler.py": {
+ "baseline": 47,
+ "slack": 24
+ },
+ "litellm/llms/github_copilot/authenticator.py": {
+ "baseline": 35,
+ "slack": 18
+ },
+ "litellm/llms/github_copilot/chat/transformation.py": {
+ "baseline": 87,
+ "slack": 44
+ },
+ "litellm/llms/github_copilot/common_utils.py": {
+ "baseline": 5,
+ "slack": 3
+ },
+ "litellm/llms/github_copilot/embedding/transformation.py": {
+ "baseline": 23,
+ "slack": 12
+ },
+ "litellm/llms/github_copilot/responses/transformation.py": {
+ "baseline": 70,
+ "slack": 35
+ },
+ "litellm/llms/google_pse/search/transformation.py": {
+ "baseline": 61,
+ "slack": 31
+ },
+ "litellm/llms/gradient_ai/chat/transformation.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/llms/groq/chat/handler.py": {
+ "baseline": 14,
+ "slack": 7
+ },
+ "litellm/llms/groq/chat/transformation.py": {
+ "baseline": 55,
+ "slack": 28
+ },
+ "litellm/llms/groq/stt/transformation.py": {
+ "baseline": 31,
+ "slack": 16
+ },
+ "litellm/llms/heroku/chat/transformation.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/llms/hosted_vllm/chat/transformation.py": {
+ "baseline": 80,
+ "slack": 40
+ },
+ "litellm/llms/hosted_vllm/embedding/transformation.py": {
+ "baseline": 19,
+ "slack": 10
+ },
+ "litellm/llms/hosted_vllm/rerank/transformation.py": {
+ "baseline": 40,
+ "slack": 20
+ },
+ "litellm/llms/hosted_vllm/responses/transformation.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/llms/hosted_vllm/transcriptions/transformation.py": {
+ "baseline": 4,
+ "slack": 2
+ },
+ "litellm/llms/huggingface/chat/transformation.py": {
+ "baseline": 17,
+ "slack": 9
+ },
+ "litellm/llms/huggingface/common_utils.py": {
+ "baseline": 15,
+ "slack": 8
+ },
+ "litellm/llms/huggingface/embedding/handler.py": {
+ "baseline": 157,
+ "slack": 79
+ },
+ "litellm/llms/huggingface/embedding/transformation.py": {
+ "baseline": 224,
+ "slack": 112
+ },
+ "litellm/llms/huggingface/rerank/transformation.py": {
+ "baseline": 70,
+ "slack": 35
+ },
+ "litellm/llms/hyperbolic/chat/transformation.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/llms/inception/chat/transformation.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/llms/inception/completion/transformation.py": {
+ "baseline": 14,
+ "slack": 7
+ },
+ "litellm/llms/infinity/common_utils.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/llms/infinity/embedding/transformation.py": {
+ "baseline": 28,
+ "slack": 14
+ },
+ "litellm/llms/infinity/rerank/transformation.py": {
+ "baseline": 20,
+ "slack": 10
+ },
+ "litellm/llms/jina_ai/common_utils.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/llms/jina_ai/embedding/transformation.py": {
+ "baseline": 35,
+ "slack": 18
+ },
+ "litellm/llms/jina_ai/rerank/transformation.py": {
+ "baseline": 42,
+ "slack": 21
+ },
+ "litellm/llms/langflow/a2a.py": {
+ "baseline": 12,
+ "slack": 6
+ },
+ "litellm/llms/langflow/chat/transformation.py": {
+ "baseline": 67,
+ "slack": 34
+ },
+ "litellm/llms/langgraph/chat/sse_iterator.py": {
+ "baseline": 49,
+ "slack": 25
+ },
+ "litellm/llms/langgraph/chat/transformation.py": {
+ "baseline": 103,
+ "slack": 52
+ },
+ "litellm/llms/lemonade/chat/transformation.py": {
+ "baseline": 66,
+ "slack": 33
+ },
+ "litellm/llms/linkup/search/transformation.py": {
+ "baseline": 43,
+ "slack": 22
+ },
+ "litellm/llms/litellm_proxy/chat/transformation.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/llms/litellm_proxy/image_edit/transformation.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/llms/litellm_proxy/image_generation/transformation.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/llms/litellm_proxy/skills/code_execution.py": {
+ "baseline": 111,
+ "slack": 56
+ },
+ "litellm/llms/litellm_proxy/skills/handler.py": {
+ "baseline": 67,
+ "slack": 34
+ },
+ "litellm/llms/litellm_proxy/skills/prompt_injection.py": {
+ "baseline": 54,
+ "slack": 27
+ },
+ "litellm/llms/litellm_proxy/skills/sandbox_executor.py": {
+ "baseline": 60,
+ "slack": 30
+ },
+ "litellm/llms/litellm_proxy/skills/transformation.py": {
+ "baseline": 57,
+ "slack": 29
+ },
+ "litellm/llms/lm_studio/chat/transformation.py": {
+ "baseline": 25,
+ "slack": 13
+ },
+ "litellm/llms/lm_studio/embed/transformation.py": {
+ "baseline": 18,
+ "slack": 9
+ },
+ "litellm/llms/manus/files/transformation.py": {
+ "baseline": 68,
+ "slack": 34
+ },
+ "litellm/llms/manus/responses/transformation.py": {
+ "baseline": 84,
+ "slack": 42
+ },
+ "litellm/llms/maritalk.py": {
+ "baseline": 9,
+ "slack": 5
+ },
+ "litellm/llms/meta_llama/chat/transformation.py": {
+ "baseline": 10,
+ "slack": 5
+ },
+ "litellm/llms/milvus/vector_stores/transformation.py": {
+ "baseline": 67,
+ "slack": 34
+ },
+ "litellm/llms/minimax/chat/transformation.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/llms/minimax/text_to_speech/transformation.py": {
+ "baseline": 112,
+ "slack": 56
+ },
+ "litellm/llms/mistral/audio_transcription/transformation.py": {
+ "baseline": 34,
+ "slack": 17
+ },
+ "litellm/llms/mistral/chat/transformation.py": {
+ "baseline": 183,
+ "slack": 92
+ },
+ "litellm/llms/mistral/ocr/guardrail_translation/handler.py": {
+ "baseline": 39,
+ "slack": 20
+ },
+ "litellm/llms/mistral/ocr/transformation.py": {
+ "baseline": 22,
+ "slack": 11
+ },
+ "litellm/llms/modelscope/chat/transformation.py": {
+ "baseline": 12,
+ "slack": 6
+ },
+ "litellm/llms/modelscope/image_generation/transformation.py": {
+ "baseline": 33,
+ "slack": 17
+ },
+ "litellm/llms/moonshot/chat/transformation.py": {
+ "baseline": 54,
+ "slack": 27
+ },
+ "litellm/llms/morph/chat/transformation.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/llms/nebius/chat/transformation.py": {
+ "baseline": 13,
+ "slack": 7
+ },
+ "litellm/llms/nlp_cloud/chat/handler.py": {
+ "baseline": 55,
+ "slack": 28
+ },
+ "litellm/llms/nlp_cloud/chat/transformation.py": {
+ "baseline": 57,
+ "slack": 29
+ },
+ "litellm/llms/nlp_cloud/common_utils.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/llms/novita/chat/transformation.py": {
+ "baseline": 4,
+ "slack": 2
+ },
+ "litellm/llms/nscale/chat/transformation.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/llms/nvidia_nim/chat/transformation.py": {
+ "baseline": 18,
+ "slack": 9
+ },
+ "litellm/llms/nvidia_nim/embed.py": {
+ "baseline": 39,
+ "slack": 20
+ },
+ "litellm/llms/nvidia_nim/rerank/ranking_transformation.py": {
+ "baseline": 4,
+ "slack": 2
+ },
+ "litellm/llms/nvidia_nim/rerank/transformation.py": {
+ "baseline": 58,
+ "slack": 29
+ },
+ "litellm/llms/nvidia_riva/audio_transcription/audio_utils.py": {
+ "baseline": 89,
+ "slack": 45
+ },
+ "litellm/llms/nvidia_riva/audio_transcription/handler.py": {
+ "baseline": 142,
+ "slack": 71
+ },
+ "litellm/llms/nvidia_riva/audio_transcription/transformation.py": {
+ "baseline": 83,
+ "slack": 42
+ },
+ "litellm/llms/nvidia_riva/common_utils.py": {
+ "baseline": 15,
+ "slack": 8
+ },
+ "litellm/llms/oci/chat/cohere.py": {
+ "baseline": 80,
+ "slack": 40
+ },
+ "litellm/llms/oci/chat/generic.py": {
+ "baseline": 58,
+ "slack": 29
+ },
+ "litellm/llms/oci/chat/transformation.py": {
+ "baseline": 159,
+ "slack": 80
+ },
+ "litellm/llms/oci/common_utils.py": {
+ "baseline": 221,
+ "slack": 111
+ },
+ "litellm/llms/oci/embed/transformation.py": {
+ "baseline": 45,
+ "slack": 23
+ },
+ "litellm/llms/ollama/chat/transformation.py": {
+ "baseline": 173,
+ "slack": 87
+ },
+ "litellm/llms/ollama/common_utils.py": {
+ "baseline": 68,
+ "slack": 34
+ },
+ "litellm/llms/ollama/completion/handler.py": {
+ "baseline": 41,
+ "slack": 21
+ },
+ "litellm/llms/ollama/completion/transformation.py": {
+ "baseline": 143,
+ "slack": 72
+ },
+ "litellm/llms/oobabooga/chat/oobabooga.py": {
+ "baseline": 59,
+ "slack": 30
+ },
+ "litellm/llms/oobabooga/chat/transformation.py": {
+ "baseline": 14,
+ "slack": 7
+ },
+ "litellm/llms/oobabooga/common_utils.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/llms/openai/chat/gpt_5_transformation.py": {
+ "baseline": 51,
+ "slack": 26
+ },
+ "litellm/llms/openai/chat/gpt_audio_transformation.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/llms/openai/chat/gpt_transformation.py": {
+ "baseline": 132,
+ "slack": 66
+ },
+ "litellm/llms/openai/chat/guardrail_translation/handler.py": {
+ "baseline": 196,
+ "slack": 98
+ },
+ "litellm/llms/openai/chat/o_series_transformation.py": {
+ "baseline": 20,
+ "slack": 10
+ },
+ "litellm/llms/openai/common_utils.py": {
+ "baseline": 46,
+ "slack": 23
+ },
+ "litellm/llms/openai/completion/guardrail_translation/handler.py": {
+ "baseline": 43,
+ "slack": 22
+ },
+ "litellm/llms/openai/completion/handler.py": {
+ "baseline": 140,
+ "slack": 70
+ },
+ "litellm/llms/openai/completion/transformation.py": {
+ "baseline": 19,
+ "slack": 10
+ },
+ "litellm/llms/openai/completion/utils.py": {
+ "baseline": 17,
+ "slack": 9
+ },
+ "litellm/llms/openai/containers/transformation.py": {
+ "baseline": 54,
+ "slack": 27
+ },
+ "litellm/llms/openai/cost_calculation.py": {
+ "baseline": 6,
+ "slack": 3
+ },
+ "litellm/llms/openai/embeddings/guardrail_translation/handler.py": {
+ "baseline": 35,
+ "slack": 18
+ },
+ "litellm/llms/openai/evals/transformation.py": {
+ "baseline": 73,
+ "slack": 37
+ },
+ "litellm/llms/openai/fine_tuning/handler.py": {
+ "baseline": 36,
+ "slack": 18
+ },
+ "litellm/llms/openai/image_edit/dalle2_transformation.py": {
+ "baseline": 46,
+ "slack": 23
+ },
+ "litellm/llms/openai/image_edit/transformation.py": {
+ "baseline": 63,
+ "slack": 32
+ },
+ "litellm/llms/openai/image_generation/cost_calculator.py": {
+ "baseline": 4,
+ "slack": 2
+ },
+ "litellm/llms/openai/image_generation/dall_e_2_transformation.py": {
+ "baseline": 23,
+ "slack": 12
+ },
+ "litellm/llms/openai/image_generation/dall_e_3_transformation.py": {
+ "baseline": 23,
+ "slack": 12
+ },
+ "litellm/llms/openai/image_generation/gpt_transformation.py": {
+ "baseline": 23,
+ "slack": 12
+ },
+ "litellm/llms/openai/image_generation/guardrail_translation/handler.py": {
+ "baseline": 14,
+ "slack": 7
+ },
+ "litellm/llms/openai/image_variations/handler.py": {
+ "baseline": 69,
+ "slack": 35
+ },
+ "litellm/llms/openai/image_variations/transformation.py": {
+ "baseline": 6,
+ "slack": 3
+ },
+ "litellm/llms/openai/openai.py": {
+ "baseline": 664,
+ "slack": 332
+ },
+ "litellm/llms/openai/realtime/handler.py": {
+ "baseline": 31,
+ "slack": 16
+ },
+ "litellm/llms/openai/realtime/http_transformation.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/llms/openai/responses/count_tokens/handler.py": {
+ "baseline": 17,
+ "slack": 9
+ },
+ "litellm/llms/openai/responses/count_tokens/token_counter.py": {
+ "baseline": 30,
+ "slack": 15
+ },
+ "litellm/llms/openai/responses/count_tokens/transformation.py": {
+ "baseline": 85,
+ "slack": 43
+ },
+ "litellm/llms/openai/responses/guardrail_translation/handler.py": {
+ "baseline": 256,
+ "slack": 128
+ },
+ "litellm/llms/openai/responses/transformation.py": {
+ "baseline": 126,
+ "slack": 63
+ },
+ "litellm/llms/openai/speech/guardrail_translation/handler.py": {
+ "baseline": 14,
+ "slack": 7
+ },
+ "litellm/llms/openai/transcriptions/gpt_transformation.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/llms/openai/transcriptions/guardrail_translation/handler.py": {
+ "baseline": 17,
+ "slack": 9
+ },
+ "litellm/llms/openai/transcriptions/handler.py": {
+ "baseline": 74,
+ "slack": 37
+ },
+ "litellm/llms/openai/transcriptions/whisper_transformation.py": {
+ "baseline": 23,
+ "slack": 12
+ },
+ "litellm/llms/openai/vector_store_files/transformation.py": {
+ "baseline": 42,
+ "slack": 21
+ },
+ "litellm/llms/openai/vector_stores/transformation.py": {
+ "baseline": 22,
+ "slack": 11
+ },
+ "litellm/llms/openai/videos/transformation.py": {
+ "baseline": 154,
+ "slack": 77
+ },
+ "litellm/llms/openai_like/chat/handler.py": {
+ "baseline": 113,
+ "slack": 57
+ },
+ "litellm/llms/openai_like/chat/transformation.py": {
+ "baseline": 36,
+ "slack": 18
+ },
+ "litellm/llms/openai_like/common_utils.py": {
+ "baseline": 20,
+ "slack": 10
+ },
+ "litellm/llms/openai_like/dynamic_config.py": {
+ "baseline": 73,
+ "slack": 37
+ },
+ "litellm/llms/openai_like/embedding/handler.py": {
+ "baseline": 56,
+ "slack": 28
+ },
+ "litellm/llms/openai_like/json_loader.py": {
+ "baseline": 46,
+ "slack": 23
+ },
+ "litellm/llms/openai_like/responses/transformation.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/llms/openrouter/chat/transformation.py": {
+ "baseline": 88,
+ "slack": 44
+ },
+ "litellm/llms/openrouter/embedding/transformation.py": {
+ "baseline": 27,
+ "slack": 14
+ },
+ "litellm/llms/openrouter/image_edit/transformation.py": {
+ "baseline": 93,
+ "slack": 47
+ },
+ "litellm/llms/openrouter/image_generation/transformation.py": {
+ "baseline": 81,
+ "slack": 41
+ },
+ "litellm/llms/openrouter/responses/transformation.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/llms/ovhcloud/audio_transcription/transformation.py": {
+ "baseline": 30,
+ "slack": 15
+ },
+ "litellm/llms/ovhcloud/chat/transformation.py": {
+ "baseline": 38,
+ "slack": 19
+ },
+ "litellm/llms/ovhcloud/embedding/transformation.py": {
+ "baseline": 25,
+ "slack": 13
+ },
+ "litellm/llms/parallel_ai/search/transformation.py": {
+ "baseline": 55,
+ "slack": 28
+ },
+ "litellm/llms/pass_through/guardrail_translation/handler.py": {
+ "baseline": 84,
+ "slack": 42
+ },
+ "litellm/llms/perplexity/chat/transformation.py": {
+ "baseline": 59,
+ "slack": 30
+ },
+ "litellm/llms/perplexity/cost_calculator.py": {
+ "baseline": 16,
+ "slack": 8
+ },
+ "litellm/llms/perplexity/embedding/transformation.py": {
+ "baseline": 47,
+ "slack": 24
+ },
+ "litellm/llms/perplexity/responses/transformation.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/llms/perplexity/search/transformation.py": {
+ "baseline": 29,
+ "slack": 15
+ },
+ "litellm/llms/petals/common_utils.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/llms/petals/completion/handler.py": {
+ "baseline": 49,
+ "slack": 25
+ },
+ "litellm/llms/petals/completion/transformation.py": {
+ "baseline": 25,
+ "slack": 13
+ },
+ "litellm/llms/pg_vector/vector_stores/transformation.py": {
+ "baseline": 10,
+ "slack": 5
+ },
+ "litellm/llms/predibase/chat/handler.py": {
+ "baseline": 98,
+ "slack": 49
+ },
+ "litellm/llms/predibase/chat/transformation.py": {
+ "baseline": 116,
+ "slack": 58
+ },
+ "litellm/llms/predibase/common_utils.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/llms/ragflow/chat/transformation.py": {
+ "baseline": 43,
+ "slack": 22
+ },
+ "litellm/llms/ragflow/vector_stores/transformation.py": {
+ "baseline": 34,
+ "slack": 17
+ },
+ "litellm/llms/recraft/cost_calculator.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/llms/recraft/image_edit/transformation.py": {
+ "baseline": 35,
+ "slack": 18
+ },
+ "litellm/llms/recraft/image_generation/transformation.py": {
+ "baseline": 20,
+ "slack": 10
+ },
+ "litellm/llms/reducto/common.py": {
+ "baseline": 46,
+ "slack": 23
+ },
+ "litellm/llms/reducto/ocr/transformation.py": {
+ "baseline": 53,
+ "slack": 27
+ },
+ "litellm/llms/replicate/chat/handler.py": {
+ "baseline": 139,
+ "slack": 70
+ },
+ "litellm/llms/replicate/chat/transformation.py": {
+ "baseline": 76,
+ "slack": 38
+ },
+ "litellm/llms/replicate/common_utils.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/llms/runwayml/cost_calculator.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/llms/runwayml/image_generation/transformation.py": {
+ "baseline": 80,
+ "slack": 40
+ },
+ "litellm/llms/runwayml/text_to_speech/transformation.py": {
+ "baseline": 116,
+ "slack": 58
+ },
+ "litellm/llms/runwayml/videos/transformation.py": {
+ "baseline": 125,
+ "slack": 63
+ },
+ "litellm/llms/s3_vectors/vector_stores/transformation.py": {
+ "baseline": 71,
+ "slack": 36
+ },
+ "litellm/llms/sagemaker/chat/handler.py": {
+ "baseline": 81,
+ "slack": 41
+ },
+ "litellm/llms/sagemaker/chat/transformation.py": {
+ "baseline": 33,
+ "slack": 17
+ },
+ "litellm/llms/sagemaker/common_utils.py": {
+ "baseline": 62,
+ "slack": 31
+ },
+ "litellm/llms/sagemaker/completion/handler.py": {
+ "baseline": 301,
+ "slack": 151
+ },
+ "litellm/llms/sagemaker/completion/transformation.py": {
+ "baseline": 95,
+ "slack": 48
+ },
+ "litellm/llms/sagemaker/embedding/cohere_transformation.py": {
+ "baseline": 22,
+ "slack": 11
+ },
+ "litellm/llms/sagemaker/embedding/transformation.py": {
+ "baseline": 30,
+ "slack": 15
+ },
+ "litellm/llms/sagemaker/nova/transformation.py": {
+ "baseline": 10,
+ "slack": 5
+ },
+ "litellm/llms/sambanova/chat.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/llms/sambanova/common_utils.py": {
+ "baseline": 4,
+ "slack": 2
+ },
+ "litellm/llms/sambanova/embedding/transformation.py": {
+ "baseline": 25,
+ "slack": 13
+ },
+ "litellm/llms/sap/chat/handler.py": {
+ "baseline": 100,
+ "slack": 50
+ },
+ "litellm/llms/sap/chat/models.py": {
+ "baseline": 95,
+ "slack": 48
+ },
+ "litellm/llms/sap/chat/transformation.py": {
+ "baseline": 182,
+ "slack": 91
+ },
+ "litellm/llms/sap/credentials.py": {
+ "baseline": 61,
+ "slack": 31
+ },
+ "litellm/llms/sap/embed/transformation.py": {
+ "baseline": 82,
+ "slack": 41
+ },
+ "litellm/llms/scaleway/audio_transcription/transformation.py": {
+ "baseline": 30,
+ "slack": 15
+ },
+ "litellm/llms/searchapi/search/transformation.py": {
+ "baseline": 58,
+ "slack": 29
+ },
+ "litellm/llms/searxng/search/transformation.py": {
+ "baseline": 43,
+ "slack": 22
+ },
+ "litellm/llms/serper/search/transformation.py": {
+ "baseline": 37,
+ "slack": 19
+ },
+ "litellm/llms/snowflake/chat/transformation.py": {
+ "baseline": 244,
+ "slack": 122
+ },
+ "litellm/llms/snowflake/common_utils.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/llms/snowflake/embedding/transformation.py": {
+ "baseline": 13,
+ "slack": 7
+ },
+ "litellm/llms/snowflake/utils.py": {
+ "baseline": 26,
+ "slack": 13
+ },
+ "litellm/llms/soniox/audio_transcription/handler.py": {
+ "baseline": 196,
+ "slack": 98
+ },
+ "litellm/llms/soniox/audio_transcription/transformation.py": {
+ "baseline": 107,
+ "slack": 54
+ },
+ "litellm/llms/soniox/common_utils.py": {
+ "baseline": 68,
+ "slack": 34
+ },
+ "litellm/llms/stability/image_edit/transformations.py": {
+ "baseline": 59,
+ "slack": 30
+ },
+ "litellm/llms/stability/image_generation/transformation.py": {
+ "baseline": 41,
+ "slack": 21
+ },
+ "litellm/llms/tavily/search/transformation.py": {
+ "baseline": 38,
+ "slack": 19
+ },
+ "litellm/llms/together_ai/chat.py": {
+ "baseline": 14,
+ "slack": 7
+ },
+ "litellm/llms/together_ai/completion/transformation.py": {
+ "baseline": 8,
+ "slack": 4
+ },
+ "litellm/llms/together_ai/cost_calculator.py": {
+ "baseline": 9,
+ "slack": 5
+ },
+ "litellm/llms/together_ai/rerank/handler.py": {
+ "baseline": 18,
+ "slack": 9
+ },
+ "litellm/llms/together_ai/rerank/transformation.py": {
+ "baseline": 18,
+ "slack": 9
+ },
+ "litellm/llms/topaz/common_utils.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/llms/topaz/image_variations/transformation.py": {
+ "baseline": 18,
+ "slack": 9
+ },
+ "litellm/llms/triton/common_utils.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/llms/triton/completion/transformation.py": {
+ "baseline": 71,
+ "slack": 36
+ },
+ "litellm/llms/triton/embedding/transformation.py": {
+ "baseline": 35,
+ "slack": 18
+ },
+ "litellm/llms/v0/chat/transformation.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/llms/vercel_ai_gateway/chat/transformation.py": {
+ "baseline": 28,
+ "slack": 14
+ },
+ "litellm/llms/vercel_ai_gateway/embedding/transformation.py": {
+ "baseline": 20,
+ "slack": 10
+ },
+ "litellm/llms/vertex_ai/agent_engine/sse_iterator.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/llms/vertex_ai/agent_engine/transformation.py": {
+ "baseline": 71,
+ "slack": 36
+ },
+ "litellm/llms/vertex_ai/aws_credentials_supplier.py": {
+ "baseline": 6,
+ "slack": 3
+ },
+ "litellm/llms/vertex_ai/batches/handler.py": {
+ "baseline": 118,
+ "slack": 59
+ },
+ "litellm/llms/vertex_ai/batches/transformation.py": {
+ "baseline": 10,
+ "slack": 5
+ },
+ "litellm/llms/vertex_ai/common_utils.py": {
+ "baseline": 493,
+ "slack": 247
+ },
+ "litellm/llms/vertex_ai/context_caching/transformation.py": {
+ "baseline": 15,
+ "slack": 8
+ },
+ "litellm/llms/vertex_ai/context_caching/vertex_ai_context_caching.py": {
+ "baseline": 85,
+ "slack": 43
+ },
+ "litellm/llms/vertex_ai/cost_calculator.py": {
+ "baseline": 4,
+ "slack": 2
+ },
+ "litellm/llms/vertex_ai/count_tokens/handler.py": {
+ "baseline": 9,
+ "slack": 5
+ },
+ "litellm/llms/vertex_ai/files/handler.py": {
+ "baseline": 28,
+ "slack": 14
+ },
+ "litellm/llms/vertex_ai/files/transformation.py": {
+ "baseline": 177,
+ "slack": 89
+ },
+ "litellm/llms/vertex_ai/fine_tuning/handler.py": {
+ "baseline": 56,
+ "slack": 28
+ },
+ "litellm/llms/vertex_ai/gemini/transformation.py": {
+ "baseline": 311,
+ "slack": 156
+ },
+ "litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py": {
+ "baseline": 912,
+ "slack": 456
+ },
+ "litellm/llms/vertex_ai/gemini_embeddings/batch_embed_content_handler.py": {
+ "baseline": 82,
+ "slack": 41
+ },
+ "litellm/llms/vertex_ai/gemini_embeddings/batch_embed_content_transformation.py": {
+ "baseline": 32,
+ "slack": 16
+ },
+ "litellm/llms/vertex_ai/google_genai/transformation.py": {
+ "baseline": 24,
+ "slack": 12
+ },
+ "litellm/llms/vertex_ai/image_edit/cost_calculator.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/llms/vertex_ai/image_edit/vertex_gemini_transformation.py": {
+ "baseline": 70,
+ "slack": 35
+ },
+ "litellm/llms/vertex_ai/image_edit/vertex_imagen_transformation.py": {
+ "baseline": 85,
+ "slack": 43
+ },
+ "litellm/llms/vertex_ai/image_generation/image_generation_handler.py": {
+ "baseline": 71,
+ "slack": 36
+ },
+ "litellm/llms/vertex_ai/image_generation/vertex_gemini_transformation.py": {
+ "baseline": 118,
+ "slack": 59
+ },
+ "litellm/llms/vertex_ai/image_generation/vertex_imagen_transformation.py": {
+ "baseline": 50,
+ "slack": 25
+ },
+ "litellm/llms/vertex_ai/multimodal_embeddings/embedding_handler.py": {
+ "baseline": 50,
+ "slack": 25
+ },
+ "litellm/llms/vertex_ai/multimodal_embeddings/transformation.py": {
+ "baseline": 39,
+ "slack": 20
+ },
+ "litellm/llms/vertex_ai/ocr/deepseek_transformation.py": {
+ "baseline": 66,
+ "slack": 33
+ },
+ "litellm/llms/vertex_ai/ocr/transformation.py": {
+ "baseline": 20,
+ "slack": 10
+ },
+ "litellm/llms/vertex_ai/rag_engine/ingestion.py": {
+ "baseline": 58,
+ "slack": 29
+ },
+ "litellm/llms/vertex_ai/rag_engine/transformation.py": {
+ "baseline": 14,
+ "slack": 7
+ },
+ "litellm/llms/vertex_ai/realtime/transformation.py": {
+ "baseline": 44,
+ "slack": 22
+ },
+ "litellm/llms/vertex_ai/rerank/transformation.py": {
+ "baseline": 66,
+ "slack": 33
+ },
+ "litellm/llms/vertex_ai/text_to_speech/text_to_speech_handler.py": {
+ "baseline": 48,
+ "slack": 24
+ },
+ "litellm/llms/vertex_ai/text_to_speech/transformation.py": {
+ "baseline": 84,
+ "slack": 42
+ },
+ "litellm/llms/vertex_ai/vector_stores/rag_api/transformation.py": {
+ "baseline": 81,
+ "slack": 41
+ },
+ "litellm/llms/vertex_ai/vector_stores/search_api/transformation.py": {
+ "baseline": 88,
+ "slack": 44
+ },
+ "litellm/llms/vertex_ai/vertex_ai_aws_wif.py": {
+ "baseline": 31,
+ "slack": 16
+ },
+ "litellm/llms/vertex_ai/vertex_ai_non_gemini.py": {
+ "baseline": 319,
+ "slack": 160
+ },
+ "litellm/llms/vertex_ai/vertex_ai_partner_models/ai21/transformation.py": {
+ "baseline": 23,
+ "slack": 12
+ },
+ "litellm/llms/vertex_ai/vertex_ai_partner_models/anthropic/experimental_pass_through/transformation.py": {
+ "baseline": 38,
+ "slack": 19
+ },
+ "litellm/llms/vertex_ai/vertex_ai_partner_models/anthropic/output_params_utils.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/llms/vertex_ai/vertex_ai_partner_models/anthropic/transformation.py": {
+ "baseline": 55,
+ "slack": 28
+ },
+ "litellm/llms/vertex_ai/vertex_ai_partner_models/count_tokens/handler.py": {
+ "baseline": 24,
+ "slack": 12
+ },
+ "litellm/llms/vertex_ai/vertex_ai_partner_models/gpt_oss/transformation.py": {
+ "baseline": 9,
+ "slack": 5
+ },
+ "litellm/llms/vertex_ai/vertex_ai_partner_models/llama3/transformation.py": {
+ "baseline": 65,
+ "slack": 33
+ },
+ "litellm/llms/vertex_ai/vertex_ai_partner_models/main.py": {
+ "baseline": 81,
+ "slack": 41
+ },
+ "litellm/llms/vertex_ai/vertex_embeddings/bge.py": {
+ "baseline": 20,
+ "slack": 10
+ },
+ "litellm/llms/vertex_ai/vertex_embeddings/embedding_handler.py": {
+ "baseline": 46,
+ "slack": 23
+ },
+ "litellm/llms/vertex_ai/vertex_embeddings/transformation.py": {
+ "baseline": 84,
+ "slack": 42
+ },
+ "litellm/llms/vertex_ai/vertex_embeddings/types.py": {
+ "baseline": 16,
+ "slack": 8
+ },
+ "litellm/llms/vertex_ai/vertex_gemma_models/main.py": {
+ "baseline": 16,
+ "slack": 8
+ },
+ "litellm/llms/vertex_ai/vertex_gemma_models/transformation.py": {
+ "baseline": 86,
+ "slack": 43
+ },
+ "litellm/llms/vertex_ai/vertex_llm_base.py": {
+ "baseline": 305,
+ "slack": 153
+ },
+ "litellm/llms/vertex_ai/vertex_model_garden/main.py": {
+ "baseline": 17,
+ "slack": 9
+ },
+ "litellm/llms/vertex_ai/videos/transformation.py": {
+ "baseline": 164,
+ "slack": 82
+ },
+ "litellm/llms/vllm/common_utils.py": {
+ "baseline": 10,
+ "slack": 5
+ },
+ "litellm/llms/vllm/completion/handler.py": {
+ "baseline": 75,
+ "slack": 38
+ },
+ "litellm/llms/vllm/passthrough/transformation.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/llms/volcengine/chat/transformation.py": {
+ "baseline": 19,
+ "slack": 10
+ },
+ "litellm/llms/volcengine/common_utils.py": {
+ "baseline": 4,
+ "slack": 2
+ },
+ "litellm/llms/volcengine/embedding/transformation.py": {
+ "baseline": 40,
+ "slack": 20
+ },
+ "litellm/llms/volcengine/responses/transformation.py": {
+ "baseline": 200,
+ "slack": 100
+ },
+ "litellm/llms/voyage/embedding/transformation.py": {
+ "baseline": 24,
+ "slack": 12
+ },
+ "litellm/llms/voyage/embedding/transformation_contextual.py": {
+ "baseline": 24,
+ "slack": 12
+ },
+ "litellm/llms/voyage/embedding/transformation_multimodal.py": {
+ "baseline": 54,
+ "slack": 27
+ },
+ "litellm/llms/voyage/rerank/transformation.py": {
+ "baseline": 38,
+ "slack": 19
+ },
+ "litellm/llms/wandb/chat/transformation.py": {
+ "baseline": 13,
+ "slack": 7
+ },
+ "litellm/llms/watsonx/audio_transcription/transformation.py": {
+ "baseline": 42,
+ "slack": 21
+ },
+ "litellm/llms/watsonx/chat/handler.py": {
+ "baseline": 27,
+ "slack": 14
+ },
+ "litellm/llms/watsonx/chat/transformation.py": {
+ "baseline": 43,
+ "slack": 22
+ },
+ "litellm/llms/watsonx/common_utils.py": {
+ "baseline": 101,
+ "slack": 51
+ },
+ "litellm/llms/watsonx/completion/transformation.py": {
+ "baseline": 117,
+ "slack": 59
+ },
+ "litellm/llms/watsonx/embed/transformation.py": {
+ "baseline": 22,
+ "slack": 11
+ },
+ "litellm/llms/watsonx/passthrough/transformation.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/llms/watsonx/rerank/transformation.py": {
+ "baseline": 89,
+ "slack": 45
+ },
+ "litellm/llms/xai/chat/transformation.py": {
+ "baseline": 105,
+ "slack": 53
+ },
+ "litellm/llms/xai/common_utils.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/llms/xai/cost_calculator.py": {
+ "baseline": 6,
+ "slack": 3
+ },
+ "litellm/llms/xai/oauth.py": {
+ "baseline": 84,
+ "slack": 42
+ },
+ "litellm/llms/xai/realtime/handler.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/llms/xai/responses/transformation.py": {
+ "baseline": 70,
+ "slack": 35
+ },
+ "litellm/llms/xinference/image_generation/transformation.py": {
+ "baseline": 11,
+ "slack": 6
+ },
+ "litellm/llms/you_com/search/transformation.py": {
+ "baseline": 49,
+ "slack": 25
+ },
+ "litellm/main.py": {
+ "baseline": 3138,
+ "slack": 1569
+ },
+ "litellm/models/access_group.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/models/base.py": {
+ "baseline": 12,
+ "slack": 6
+ },
+ "litellm/models/budget.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/models/config.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/models/credentials.py": {
+ "baseline": 8,
+ "slack": 4
+ },
+ "litellm/models/end_user.py": {
+ "baseline": 6,
+ "slack": 3
+ },
+ "litellm/models/managed_files.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/models/mcp_server.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/models/model.py": {
+ "baseline": 18,
+ "slack": 9
+ },
+ "litellm/models/object_permission.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/models/organization.py": {
+ "baseline": 4,
+ "slack": 2
+ },
+ "litellm/models/organization_membership.py": {
+ "baseline": 9,
+ "slack": 5
+ },
+ "litellm/models/project.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/models/skills.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/models/spend_logs.py": {
+ "baseline": 11,
+ "slack": 6
+ },
+ "litellm/models/tag.py": {
+ "baseline": 9,
+ "slack": 5
+ },
+ "litellm/models/team.py": {
+ "baseline": 42,
+ "slack": 21
+ },
+ "litellm/models/team_membership.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/models/user.py": {
+ "baseline": 18,
+ "slack": 9
+ },
+ "litellm/models/verification_token.py": {
+ "baseline": 9,
+ "slack": 5
+ },
+ "litellm/ocr/main.py": {
+ "baseline": 80,
+ "slack": 40
+ },
+ "litellm/passthrough/main.py": {
+ "baseline": 100,
+ "slack": 50
+ },
+ "litellm/passthrough/timeout_utils.py": {
+ "baseline": 15,
+ "slack": 8
+ },
+ "litellm/passthrough/utils.py": {
+ "baseline": 41,
+ "slack": 21
+ },
+ "litellm/proxy/_experimental/mcp_server/auth/token_exchange.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/proxy/_experimental/mcp_server/auth/user_api_key_auth_mcp.py": {
+ "baseline": 175,
+ "slack": 88
+ },
+ "litellm/proxy/_experimental/mcp_server/byok_oauth_endpoints.py": {
+ "baseline": 58,
+ "slack": 29
+ },
+ "litellm/proxy/_experimental/mcp_server/cost_calculator.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/proxy/_experimental/mcp_server/db.py": {
+ "baseline": 428,
+ "slack": 214
+ },
+ "litellm/proxy/_experimental/mcp_server/discoverable_endpoints.py": {
+ "baseline": 193,
+ "slack": 97
+ },
+ "litellm/proxy/_experimental/mcp_server/elicitation_handler.py": {
+ "baseline": 57,
+ "slack": 29
+ },
+ "litellm/proxy/_experimental/mcp_server/guardrail_translation/handler.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/proxy/_experimental/mcp_server/mcp_debug.py": {
+ "baseline": 10,
+ "slack": 5
+ },
+ "litellm/proxy/_experimental/mcp_server/mcp_server_manager.py": {
+ "baseline": 877,
+ "slack": 439
+ },
+ "litellm/proxy/_experimental/mcp_server/oauth2_token_cache.py": {
+ "baseline": 36,
+ "slack": 18
+ },
+ "litellm/proxy/_experimental/mcp_server/oauth_utils.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/proxy/_experimental/mcp_server/openapi_to_mcp_generator.py": {
+ "baseline": 213,
+ "slack": 107
+ },
+ "litellm/proxy/_experimental/mcp_server/rest_endpoints.py": {
+ "baseline": 288,
+ "slack": 144
+ },
+ "litellm/proxy/_experimental/mcp_server/sampling_handler.py": {
+ "baseline": 541,
+ "slack": 271
+ },
+ "litellm/proxy/_experimental/mcp_server/semantic_tool_filter.py": {
+ "baseline": 98,
+ "slack": 49
+ },
+ "litellm/proxy/_experimental/mcp_server/server.py": {
+ "baseline": 971,
+ "slack": 486
+ },
+ "litellm/proxy/_experimental/mcp_server/sse_transport.py": {
+ "baseline": 61,
+ "slack": 31
+ },
+ "litellm/proxy/_experimental/mcp_server/tool_registry.py": {
+ "baseline": 9,
+ "slack": 5
+ },
+ "litellm/proxy/_experimental/mcp_server/toolset_db.py": {
+ "baseline": 46,
+ "slack": 23
+ },
+ "litellm/proxy/_experimental/mcp_server/ui_session_utils.py": {
+ "baseline": 11,
+ "slack": 6
+ },
+ "litellm/proxy/_experimental/mcp_server/utils.py": {
+ "baseline": 99,
+ "slack": 50
+ },
+ "litellm/proxy/_lazy_features.py": {
+ "baseline": 84,
+ "slack": 42
+ },
+ "litellm/proxy/_lazy_openapi_snapshot.py": {
+ "baseline": 72,
+ "slack": 36
+ },
+ "litellm/proxy/_logging.py": {
+ "baseline": 10,
+ "slack": 5
+ },
+ "litellm/proxy/_types.py": {
+ "baseline": 848,
+ "slack": 424
+ },
+ "litellm/proxy/a2a/agent_card.py": {
+ "baseline": 51,
+ "slack": 26
+ },
+ "litellm/proxy/a2a/discovery.py": {
+ "baseline": 18,
+ "slack": 9
+ },
+ "litellm/proxy/a2a/endpoints.py": {
+ "baseline": 12,
+ "slack": 6
+ },
+ "litellm/proxy/agent_endpoints/a2a_endpoints.py": {
+ "baseline": 333,
+ "slack": 167
+ },
+ "litellm/proxy/agent_endpoints/a2a_routing.py": {
+ "baseline": 11,
+ "slack": 6
+ },
+ "litellm/proxy/agent_endpoints/agent_registry.py": {
+ "baseline": 143,
+ "slack": 72
+ },
+ "litellm/proxy/agent_endpoints/auth/agent_permission_handler.py": {
+ "baseline": 36,
+ "slack": 18
+ },
+ "litellm/proxy/agent_endpoints/databricks_oauth.py": {
+ "baseline": 36,
+ "slack": 18
+ },
+ "litellm/proxy/agent_endpoints/endpoints.py": {
+ "baseline": 222,
+ "slack": 111
+ },
+ "litellm/proxy/agent_endpoints/model_list_helpers.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/proxy/analytics_endpoints/analytics_endpoints.py": {
+ "baseline": 13,
+ "slack": 7
+ },
+ "litellm/proxy/anthropic_endpoints/claude_code_endpoints/claude_code_marketplace.py": {
+ "baseline": 225,
+ "slack": 113
+ },
+ "litellm/proxy/anthropic_endpoints/endpoints.py": {
+ "baseline": 77,
+ "slack": 39
+ },
+ "litellm/proxy/anthropic_endpoints/skills_endpoints.py": {
+ "baseline": 106,
+ "slack": 53
+ },
+ "litellm/proxy/auth/auth_checks.py": {
+ "baseline": 654,
+ "slack": 327
+ },
+ "litellm/proxy/auth/auth_checks_organization.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/proxy/auth/auth_exception_handler.py": {
+ "baseline": 15,
+ "slack": 8
+ },
+ "litellm/proxy/auth/auth_utils.py": {
+ "baseline": 276,
+ "slack": 138
+ },
+ "litellm/proxy/auth/handle_jwt.py": {
+ "baseline": 378,
+ "slack": 189
+ },
+ "litellm/proxy/auth/ip_address_utils.py": {
+ "baseline": 17,
+ "slack": 9
+ },
+ "litellm/proxy/auth/litellm_license.py": {
+ "baseline": 63,
+ "slack": 32
+ },
+ "litellm/proxy/auth/login_utils.py": {
+ "baseline": 40,
+ "slack": 20
+ },
+ "litellm/proxy/auth/model_checks.py": {
+ "baseline": 52,
+ "slack": 26
+ },
+ "litellm/proxy/auth/oauth2_check.py": {
+ "baseline": 15,
+ "slack": 8
+ },
+ "litellm/proxy/auth/oauth2_proxy_hook.py": {
+ "baseline": 9,
+ "slack": 5
+ },
+ "litellm/proxy/auth/rds_iam_token.py": {
+ "baseline": 45,
+ "slack": 23
+ },
+ "litellm/proxy/auth/route_checks.py": {
+ "baseline": 67,
+ "slack": 34
+ },
+ "litellm/proxy/auth/trusted_proxy_utils.py": {
+ "baseline": 20,
+ "slack": 10
+ },
+ "litellm/proxy/auth/user_api_key_auth.py": {
+ "baseline": 590,
+ "slack": 295
+ },
+ "litellm/proxy/batches_endpoints/endpoints.py": {
+ "baseline": 344,
+ "slack": 172
+ },
+ "litellm/proxy/caching_routes.py": {
+ "baseline": 105,
+ "slack": 53
+ },
+ "litellm/proxy/client/chat.py": {
+ "baseline": 31,
+ "slack": 16
+ },
+ "litellm/proxy/client/cli/commands/agents.py": {
+ "baseline": 16,
+ "slack": 8
+ },
+ "litellm/proxy/client/cli/commands/auth.py": {
+ "baseline": 236,
+ "slack": 118
+ },
+ "litellm/proxy/client/cli/commands/chat.py": {
+ "baseline": 101,
+ "slack": 51
+ },
+ "litellm/proxy/client/cli/commands/credentials.py": {
+ "baseline": 39,
+ "slack": 20
+ },
+ "litellm/proxy/client/cli/commands/http.py": {
+ "baseline": 13,
+ "slack": 7
+ },
+ "litellm/proxy/client/cli/commands/keys.py": {
+ "baseline": 100,
+ "slack": 50
+ },
+ "litellm/proxy/client/cli/commands/models.py": {
+ "baseline": 151,
+ "slack": 76
+ },
+ "litellm/proxy/client/cli/commands/teams.py": {
+ "baseline": 66,
+ "slack": 33
+ },
+ "litellm/proxy/client/cli/commands/users.py": {
+ "baseline": 41,
+ "slack": 21
+ },
+ "litellm/proxy/client/cli/interface.py": {
+ "baseline": 95,
+ "slack": 48
+ },
+ "litellm/proxy/client/cli/main.py": {
+ "baseline": 15,
+ "slack": 8
+ },
+ "litellm/proxy/client/credentials.py": {
+ "baseline": 10,
+ "slack": 5
+ },
+ "litellm/proxy/client/health.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/proxy/client/http_client.py": {
+ "baseline": 4,
+ "slack": 2
+ },
+ "litellm/proxy/client/keys.py": {
+ "baseline": 42,
+ "slack": 21
+ },
+ "litellm/proxy/client/model_groups.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/proxy/client/models.py": {
+ "baseline": 33,
+ "slack": 17
+ },
+ "litellm/proxy/client/teams.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/proxy/client/users.py": {
+ "baseline": 9,
+ "slack": 5
+ },
+ "litellm/proxy/common_request_processing.py": {
+ "baseline": 753,
+ "slack": 377
+ },
+ "litellm/proxy/common_utils/admin_ui_utils.py": {
+ "baseline": 9,
+ "slack": 5
+ },
+ "litellm/proxy/common_utils/banner.py": {
+ "baseline": 4,
+ "slack": 2
+ },
+ "litellm/proxy/common_utils/cache_coordinator.py": {
+ "baseline": 23,
+ "slack": 12
+ },
+ "litellm/proxy/common_utils/cache_pydantic_utils.py": {
+ "baseline": 15,
+ "slack": 8
+ },
+ "litellm/proxy/common_utils/callback_utils.py": {
+ "baseline": 255,
+ "slack": 128
+ },
+ "litellm/proxy/common_utils/custom_openapi_spec.py": {
+ "baseline": 119,
+ "slack": 60
+ },
+ "litellm/proxy/common_utils/debug_utils.py": {
+ "baseline": 366,
+ "slack": 183
+ },
+ "litellm/proxy/common_utils/encrypt_decrypt_utils.py": {
+ "baseline": 17,
+ "slack": 9
+ },
+ "litellm/proxy/common_utils/expired_ui_session_key_cleanup_manager.py": {
+ "baseline": 39,
+ "slack": 20
+ },
+ "litellm/proxy/common_utils/get_routes.py": {
+ "baseline": 45,
+ "slack": 23
+ },
+ "litellm/proxy/common_utils/http_parsing_utils.py": {
+ "baseline": 177,
+ "slack": 89
+ },
+ "litellm/proxy/common_utils/key_rotation_manager.py": {
+ "baseline": 66,
+ "slack": 33
+ },
+ "litellm/proxy/common_utils/load_config_utils.py": {
+ "baseline": 62,
+ "slack": 31
+ },
+ "litellm/proxy/common_utils/openai_endpoint_utils.py": {
+ "baseline": 15,
+ "slack": 8
+ },
+ "litellm/proxy/common_utils/openapi_schema_compat.py": {
+ "baseline": 24,
+ "slack": 12
+ },
+ "litellm/proxy/common_utils/performance_utils.py": {
+ "baseline": 60,
+ "slack": 30
+ },
+ "litellm/proxy/common_utils/proxy_rate_limit_error.py": {
+ "baseline": 20,
+ "slack": 10
+ },
+ "litellm/proxy/common_utils/proxy_state.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/proxy/common_utils/rbac_utils.py": {
+ "baseline": 8,
+ "slack": 4
+ },
+ "litellm/proxy/common_utils/reset_budget_job.py": {
+ "baseline": 539,
+ "slack": 270
+ },
+ "litellm/proxy/common_utils/swagger_utils.py": {
+ "baseline": 10,
+ "slack": 5
+ },
+ "litellm/proxy/common_utils/timezone_utils.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/proxy/common_utils/user_api_key_cache.py": {
+ "baseline": 50,
+ "slack": 25
+ },
+ "litellm/proxy/compliance_checks.py": {
+ "baseline": 34,
+ "slack": 17
+ },
+ "litellm/proxy/config_management_endpoints/pass_through_endpoints.py": {
+ "baseline": 4,
+ "slack": 2
+ },
+ "litellm/proxy/container_endpoints/endpoints.py": {
+ "baseline": 85,
+ "slack": 43
+ },
+ "litellm/proxy/container_endpoints/handler_factory.py": {
+ "baseline": 120,
+ "slack": 60
+ },
+ "litellm/proxy/container_endpoints/ownership.py": {
+ "baseline": 167,
+ "slack": 84
+ },
+ "litellm/proxy/credential_endpoints/endpoints.py": {
+ "baseline": 118,
+ "slack": 59
+ },
+ "litellm/proxy/custom_hooks/custom_ui_sso_hook.py": {
+ "baseline": 4,
+ "slack": 2
+ },
+ "litellm/proxy/custom_prompt_management.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/proxy/custom_sso.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/proxy/db/check_migration.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/proxy/db/create_views.py": {
+ "baseline": 43,
+ "slack": 22
+ },
+ "litellm/proxy/db/db_spend_update_writer.py": {
+ "baseline": 347,
+ "slack": 174
+ },
+ "litellm/proxy/db/db_transaction_queue/base_update_queue.py": {
+ "baseline": 22,
+ "slack": 11
+ },
+ "litellm/proxy/db/db_transaction_queue/daily_spend_update_queue.py": {
+ "baseline": 22,
+ "slack": 11
+ },
+ "litellm/proxy/db/db_transaction_queue/pod_lock_manager.py": {
+ "baseline": 35,
+ "slack": 18
+ },
+ "litellm/proxy/db/db_transaction_queue/redis_update_buffer.py": {
+ "baseline": 140,
+ "slack": 70
+ },
+ "litellm/proxy/db/db_transaction_queue/spend_log_cleanup.py": {
+ "baseline": 24,
+ "slack": 12
+ },
+ "litellm/proxy/db/db_transaction_queue/spend_logs_partition_manager.py": {
+ "baseline": 19,
+ "slack": 10
+ },
+ "litellm/proxy/db/db_transaction_queue/spend_update_queue.py": {
+ "baseline": 25,
+ "slack": 13
+ },
+ "litellm/proxy/db/db_url_settings.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/proxy/db/dynamo_db.py": {
+ "baseline": 27,
+ "slack": 14
+ },
+ "litellm/proxy/db/exception_handler.py": {
+ "baseline": 39,
+ "slack": 20
+ },
+ "litellm/proxy/db/log_db_metrics.py": {
+ "baseline": 51,
+ "slack": 26
+ },
+ "litellm/proxy/db/prisma_client.py": {
+ "baseline": 51,
+ "slack": 26
+ },
+ "litellm/proxy/db/routing_prisma_wrapper.py": {
+ "baseline": 46,
+ "slack": 23
+ },
+ "litellm/proxy/db/spend_counter_reseed.py": {
+ "baseline": 65,
+ "slack": 33
+ },
+ "litellm/proxy/db/spend_log_tool_index.py": {
+ "baseline": 83,
+ "slack": 42
+ },
+ "litellm/proxy/db/tool_registry_writer.py": {
+ "baseline": 145,
+ "slack": 73
+ },
+ "litellm/proxy/discovery_endpoints/ui_discovery_endpoints.py": {
+ "baseline": 17,
+ "slack": 9
+ },
+ "litellm/proxy/example_config_yaml/custom_auth.py": {
+ "baseline": 16,
+ "slack": 8
+ },
+ "litellm/proxy/example_config_yaml/custom_callbacks.py": {
+ "baseline": 34,
+ "slack": 17
+ },
+ "litellm/proxy/example_config_yaml/custom_callbacks1.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/proxy/example_config_yaml/custom_guardrail.py": {
+ "baseline": 23,
+ "slack": 12
+ },
+ "litellm/proxy/example_config_yaml/custom_handler.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/proxy/example_config_yaml/pipeline_test_guardrails.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/proxy/fine_tuning_endpoints/endpoints.py": {
+ "baseline": 222,
+ "slack": 111
+ },
+ "litellm/proxy/google_endpoints/agents_endpoints.py": {
+ "baseline": 158,
+ "slack": 79
+ },
+ "litellm/proxy/google_endpoints/endpoints.py": {
+ "baseline": 131,
+ "slack": 66
+ },
+ "litellm/proxy/guardrails/_content_utils.py": {
+ "baseline": 118,
+ "slack": 59
+ },
+ "litellm/proxy/guardrails/guardrail_endpoints.py": {
+ "baseline": 610,
+ "slack": 305
+ },
+ "litellm/proxy/guardrails/guardrail_helpers.py": {
+ "baseline": 27,
+ "slack": 14
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/aim/aim.py": {
+ "baseline": 139,
+ "slack": 70
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/akto/akto.py": {
+ "baseline": 127,
+ "slack": 64
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/aporia_ai/aporia_ai.py": {
+ "baseline": 66,
+ "slack": 33
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/azure/base.py": {
+ "baseline": 18,
+ "slack": 9
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/azure/prompt_shield.py": {
+ "baseline": 9,
+ "slack": 5
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/azure/text_moderation.py": {
+ "baseline": 33,
+ "slack": 17
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py": {
+ "baseline": 271,
+ "slack": 136
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/block_code_execution/block_code_execution.py": {
+ "baseline": 27,
+ "slack": 14
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/cato_networks/cato_networks.py": {
+ "baseline": 402,
+ "slack": 201
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/cisco_ai_defense/cisco_ai_defense.py": {
+ "baseline": 756,
+ "slack": 378
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/cisco_ai_defense/cisco_ai_defense_mcp.py": {
+ "baseline": 324,
+ "slack": 162
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/crowdstrike_aidr/crowdstrike_aidr.py": {
+ "baseline": 104,
+ "slack": 52
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/custom_code/custom_code_guardrail.py": {
+ "baseline": 68,
+ "slack": 34
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/custom_code/primitives.py": {
+ "baseline": 102,
+ "slack": 51
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/custom_code/sandbox.py": {
+ "baseline": 34,
+ "slack": 17
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/custom_guardrail.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/dynamoai/dynamoai.py": {
+ "baseline": 83,
+ "slack": 42
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/enkryptai/enkryptai.py": {
+ "baseline": 79,
+ "slack": 40
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/generic_guardrail_api/generic_guardrail_api.py": {
+ "baseline": 107,
+ "slack": 54
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/grayswan/__init__.py": {
+ "baseline": 29,
+ "slack": 15
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/grayswan/grayswan.py": {
+ "baseline": 154,
+ "slack": 77
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/guardrails_ai/guardrails_ai.py": {
+ "baseline": 59,
+ "slack": 30
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/hiddenlayer/hiddenlayer.py": {
+ "baseline": 194,
+ "slack": 97
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/ibm_guardrails/ibm_detector.py": {
+ "baseline": 66,
+ "slack": 33
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/javelin/javelin.py": {
+ "baseline": 57,
+ "slack": 29
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/lakera_ai.py": {
+ "baseline": 92,
+ "slack": 46
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/lakera_ai_v2.py": {
+ "baseline": 84,
+ "slack": 42
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/lasso/__init__.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/lasso/lasso.py": {
+ "baseline": 373,
+ "slack": 187
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/competitor_intent/airline.py": {
+ "baseline": 56,
+ "slack": 28
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/competitor_intent/base.py": {
+ "baseline": 33,
+ "slack": 17
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/content_filter.py": {
+ "baseline": 275,
+ "slack": 138
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/guardrail_benchmarks/test_eval.py": {
+ "baseline": 194,
+ "slack": 97
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/patterns.py": {
+ "baseline": 61,
+ "slack": 31
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/llm_as_a_judge/__init__.py": {
+ "baseline": 84,
+ "slack": 42
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/mcp_end_user_permission/mcp_end_user_permission.py": {
+ "baseline": 29,
+ "slack": 15
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/mcp_jwt_signer/mcp_jwt_signer.py": {
+ "baseline": 202,
+ "slack": 101
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/mcp_security/mcp_security_guardrail.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/microsoft_purview/base.py": {
+ "baseline": 160,
+ "slack": 80
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/microsoft_purview/purview_dlp.py": {
+ "baseline": 131,
+ "slack": 66
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/model_armor/model_armor.py": {
+ "baseline": 196,
+ "slack": 98
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/noma/noma.py": {
+ "baseline": 202,
+ "slack": 101
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/noma/noma_v2.py": {
+ "baseline": 69,
+ "slack": 35
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/onyx/onyx.py": {
+ "baseline": 23,
+ "slack": 12
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/openai/moderations.py": {
+ "baseline": 48,
+ "slack": 24
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/ovalix/ovalix.py": {
+ "baseline": 34,
+ "slack": 17
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/pangea/pangea.py": {
+ "baseline": 83,
+ "slack": 42
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/panw_prisma_airs/__init__.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/panw_prisma_airs/panw_prisma_airs.py": {
+ "baseline": 656,
+ "slack": 328
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/pillar/pillar.py": {
+ "baseline": 181,
+ "slack": 91
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/presidio.py": {
+ "baseline": 462,
+ "slack": 231
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/prompt_security/prompt_security.py": {
+ "baseline": 259,
+ "slack": 130
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/promptguard/promptguard.py": {
+ "baseline": 41,
+ "slack": 21
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/qohash/qohash.py": {
+ "baseline": 14,
+ "slack": 7
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/qualifire/qualifire.py": {
+ "baseline": 127,
+ "slack": 64
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/semantic_guard/route_loader.py": {
+ "baseline": 40,
+ "slack": 20
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/semantic_guard/semantic_guard.py": {
+ "baseline": 70,
+ "slack": 35
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/tool_permission.py": {
+ "baseline": 210,
+ "slack": 105
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/tool_policy/tool_policy_guardrail.py": {
+ "baseline": 73,
+ "slack": 37
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/unified_guardrail/unified_guardrail.py": {
+ "baseline": 144,
+ "slack": 72
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/vigil_guard/vigil_guard.py": {
+ "baseline": 118,
+ "slack": 59
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/xecguard/xecguard.py": {
+ "baseline": 221,
+ "slack": 111
+ },
+ "litellm/proxy/guardrails/guardrail_hooks/zscaler_ai_guard/zscaler_ai_guard.py": {
+ "baseline": 194,
+ "slack": 97
+ },
+ "litellm/proxy/guardrails/guardrail_initializers.py": {
+ "baseline": 77,
+ "slack": 39
+ },
+ "litellm/proxy/guardrails/guardrail_registry.py": {
+ "baseline": 228,
+ "slack": 114
+ },
+ "litellm/proxy/guardrails/init_guardrails.py": {
+ "baseline": 18,
+ "slack": 9
+ },
+ "litellm/proxy/guardrails/tool_name_extraction.py": {
+ "baseline": 30,
+ "slack": 15
+ },
+ "litellm/proxy/guardrails/usage_endpoints.py": {
+ "baseline": 454,
+ "slack": 227
+ },
+ "litellm/proxy/guardrails/usage_tracking.py": {
+ "baseline": 85,
+ "slack": 43
+ },
+ "litellm/proxy/health_check.py": {
+ "baseline": 302,
+ "slack": 151
+ },
+ "litellm/proxy/health_check_utils/shared_health_check_manager.py": {
+ "baseline": 85,
+ "slack": 43
+ },
+ "litellm/proxy/health_endpoints/_health_endpoints.py": {
+ "baseline": 686,
+ "slack": 343
+ },
+ "litellm/proxy/hooks/azure_content_safety.py": {
+ "baseline": 86,
+ "slack": 43
+ },
+ "litellm/proxy/hooks/batch_rate_limiter.py": {
+ "baseline": 111,
+ "slack": 56
+ },
+ "litellm/proxy/hooks/batch_redis_get.py": {
+ "baseline": 50,
+ "slack": 25
+ },
+ "litellm/proxy/hooks/cache_control_check.py": {
+ "baseline": 13,
+ "slack": 7
+ },
+ "litellm/proxy/hooks/dynamic_rate_limiter.py": {
+ "baseline": 42,
+ "slack": 21
+ },
+ "litellm/proxy/hooks/dynamic_rate_limiter_v3.py": {
+ "baseline": 112,
+ "slack": 56
+ },
+ "litellm/proxy/hooks/key_management_event_hooks.py": {
+ "baseline": 114,
+ "slack": 57
+ },
+ "litellm/proxy/hooks/litellm_skills/main.py": {
+ "baseline": 389,
+ "slack": 195
+ },
+ "litellm/proxy/hooks/max_budget_limiter.py": {
+ "baseline": 5,
+ "slack": 3
+ },
+ "litellm/proxy/hooks/max_budget_per_session_limiter.py": {
+ "baseline": 73,
+ "slack": 37
+ },
+ "litellm/proxy/hooks/max_iterations_limiter.py": {
+ "baseline": 37,
+ "slack": 19
+ },
+ "litellm/proxy/hooks/mcp_semantic_filter/hook.py": {
+ "baseline": 105,
+ "slack": 53
+ },
+ "litellm/proxy/hooks/model_max_budget_limiter.py": {
+ "baseline": 115,
+ "slack": 58
+ },
+ "litellm/proxy/hooks/parallel_request_limiter.py": {
+ "baseline": 417,
+ "slack": 209
+ },
+ "litellm/proxy/hooks/parallel_request_limiter_v3.py": {
+ "baseline": 630,
+ "slack": 315
+ },
+ "litellm/proxy/hooks/prompt_injection_detection.py": {
+ "baseline": 23,
+ "slack": 12
+ },
+ "litellm/proxy/hooks/proxy_track_cost_callback.py": {
+ "baseline": 204,
+ "slack": 102
+ },
+ "litellm/proxy/hooks/rate_limiter_utils.py": {
+ "baseline": 14,
+ "slack": 7
+ },
+ "litellm/proxy/hooks/responses_id_security.py": {
+ "baseline": 57,
+ "slack": 29
+ },
+ "litellm/proxy/hooks/sensitive_data_routing.py": {
+ "baseline": 30,
+ "slack": 15
+ },
+ "litellm/proxy/hooks/user_management_event_hooks.py": {
+ "baseline": 18,
+ "slack": 9
+ },
+ "litellm/proxy/image_endpoints/endpoints.py": {
+ "baseline": 125,
+ "slack": 63
+ },
+ "litellm/proxy/lambda.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/proxy/litellm_pre_call_utils.py": {
+ "baseline": 912,
+ "slack": 456
+ },
+ "litellm/proxy/management_endpoints/access_group_endpoints.py": {
+ "baseline": 277,
+ "slack": 139
+ },
+ "litellm/proxy/management_endpoints/budget_management_endpoints.py": {
+ "baseline": 70,
+ "slack": 35
+ },
+ "litellm/proxy/management_endpoints/cache_settings_endpoints.py": {
+ "baseline": 154,
+ "slack": 77
+ },
+ "litellm/proxy/management_endpoints/callback_management_endpoints.py": {
+ "baseline": 16,
+ "slack": 8
+ },
+ "litellm/proxy/management_endpoints/common_daily_activity.py": {
+ "baseline": 446,
+ "slack": 223
+ },
+ "litellm/proxy/management_endpoints/common_utils.py": {
+ "baseline": 147,
+ "slack": 74
+ },
+ "litellm/proxy/management_endpoints/compliance_endpoints.py": {
+ "baseline": 8,
+ "slack": 4
+ },
+ "litellm/proxy/management_endpoints/config_override_endpoints.py": {
+ "baseline": 165,
+ "slack": 83
+ },
+ "litellm/proxy/management_endpoints/cost_tracking_settings.py": {
+ "baseline": 104,
+ "slack": 52
+ },
+ "litellm/proxy/management_endpoints/customer_endpoints.py": {
+ "baseline": 198,
+ "slack": 99
+ },
+ "litellm/proxy/management_endpoints/fallback_management_endpoints.py": {
+ "baseline": 50,
+ "slack": 25
+ },
+ "litellm/proxy/management_endpoints/internal_user_endpoints.py": {
+ "baseline": 720,
+ "slack": 360
+ },
+ "litellm/proxy/management_endpoints/jwt_key_mapping_endpoints.py": {
+ "baseline": 83,
+ "slack": 42
+ },
+ "litellm/proxy/management_endpoints/key_management_endpoints.py": {
+ "baseline": 1565,
+ "slack": 783
+ },
+ "litellm/proxy/management_endpoints/mcp_management_endpoints.py": {
+ "baseline": 625,
+ "slack": 313
+ },
+ "litellm/proxy/management_endpoints/model_access_group_management_endpoints.py": {
+ "baseline": 163,
+ "slack": 82
+ },
+ "litellm/proxy/management_endpoints/model_management_endpoints.py": {
+ "baseline": 389,
+ "slack": 195
+ },
+ "litellm/proxy/management_endpoints/organization_endpoints.py": {
+ "baseline": 322,
+ "slack": 161
+ },
+ "litellm/proxy/management_endpoints/policy_endpoints/ai_policy_suggester.py": {
+ "baseline": 34,
+ "slack": 17
+ },
+ "litellm/proxy/management_endpoints/policy_endpoints/endpoints.py": {
+ "baseline": 286,
+ "slack": 143
+ },
+ "litellm/proxy/management_endpoints/router_settings_endpoints.py": {
+ "baseline": 37,
+ "slack": 19
+ },
+ "litellm/proxy/management_endpoints/scim/scim_transformations.py": {
+ "baseline": 30,
+ "slack": 15
+ },
+ "litellm/proxy/management_endpoints/scim/scim_v2.py": {
+ "baseline": 640,
+ "slack": 320
+ },
+ "litellm/proxy/management_endpoints/sso/custom_microsoft_sso.py": {
+ "baseline": 5,
+ "slack": 3
+ },
+ "litellm/proxy/management_endpoints/sso_helper_utils.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/proxy/management_endpoints/tag_management_endpoints.py": {
+ "baseline": 207,
+ "slack": 104
+ },
+ "litellm/proxy/management_endpoints/team_callback_endpoints.py": {
+ "baseline": 127,
+ "slack": 64
+ },
+ "litellm/proxy/management_endpoints/team_endpoints.py": {
+ "baseline": 1236,
+ "slack": 618
+ },
+ "litellm/proxy/management_endpoints/tool_management_endpoints.py": {
+ "baseline": 172,
+ "slack": 86
+ },
+ "litellm/proxy/management_endpoints/types.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/proxy/management_endpoints/ui_sso.py": {
+ "baseline": 1009,
+ "slack": 505
+ },
+ "litellm/proxy/management_endpoints/usage_endpoints/ai_usage_chat.py": {
+ "baseline": 163,
+ "slack": 82
+ },
+ "litellm/proxy/management_endpoints/usage_endpoints/endpoints.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/proxy/management_endpoints/user_agent_analytics_endpoints.py": {
+ "baseline": 176,
+ "slack": 88
+ },
+ "litellm/proxy/management_endpoints/workflow_management_endpoints.py": {
+ "baseline": 147,
+ "slack": 74
+ },
+ "litellm/proxy/management_helpers/audit_logs.py": {
+ "baseline": 30,
+ "slack": 15
+ },
+ "litellm/proxy/management_helpers/object_permission_utils.py": {
+ "baseline": 145,
+ "slack": 73
+ },
+ "litellm/proxy/management_helpers/team_member_permission_checks.py": {
+ "baseline": 4,
+ "slack": 2
+ },
+ "litellm/proxy/management_helpers/user_invitation.py": {
+ "baseline": 12,
+ "slack": 6
+ },
+ "litellm/proxy/management_helpers/utils.py": {
+ "baseline": 277,
+ "slack": 139
+ },
+ "litellm/proxy/mcp_tools.py": {
+ "baseline": 4,
+ "slack": 2
+ },
+ "litellm/proxy/memory/memory_endpoints.py": {
+ "baseline": 178,
+ "slack": 89
+ },
+ "litellm/proxy/middleware/in_flight_requests_middleware.py": {
+ "baseline": 15,
+ "slack": 8
+ },
+ "litellm/proxy/middleware/prometheus_auth_middleware.py": {
+ "baseline": 26,
+ "slack": 13
+ },
+ "litellm/proxy/middleware/request_size_limit_middleware.py": {
+ "baseline": 29,
+ "slack": 15
+ },
+ "litellm/proxy/ocr_endpoints/endpoints.py": {
+ "baseline": 50,
+ "slack": 25
+ },
+ "litellm/proxy/openai_evals_endpoints/endpoints.py": {
+ "baseline": 265,
+ "slack": 133
+ },
+ "litellm/proxy/openai_files_endpoints/common_utils.py": {
+ "baseline": 206,
+ "slack": 103
+ },
+ "litellm/proxy/openai_files_endpoints/file_content_streaming_handler.py": {
+ "baseline": 35,
+ "slack": 18
+ },
+ "litellm/proxy/openai_files_endpoints/files_endpoints.py": {
+ "baseline": 427,
+ "slack": 214
+ },
+ "litellm/proxy/openai_files_endpoints/storage_backend_service.py": {
+ "baseline": 22,
+ "slack": 11
+ },
+ "litellm/proxy/pass_through_endpoints/jsonpath_extractor.py": {
+ "baseline": 13,
+ "slack": 7
+ },
+ "litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py": {
+ "baseline": 375,
+ "slack": 188
+ },
+ "litellm/proxy/pass_through_endpoints/llm_provider_handlers/anthropic_passthrough_logging_handler.py": {
+ "baseline": 164,
+ "slack": 82
+ },
+ "litellm/proxy/pass_through_endpoints/llm_provider_handlers/assembly_passthrough_logging_handler.py": {
+ "baseline": 45,
+ "slack": 23
+ },
+ "litellm/proxy/pass_through_endpoints/llm_provider_handlers/base_passthrough_logging_handler.py": {
+ "baseline": 32,
+ "slack": 16
+ },
+ "litellm/proxy/pass_through_endpoints/llm_provider_handlers/cohere_passthrough_logging_handler.py": {
+ "baseline": 39,
+ "slack": 20
+ },
+ "litellm/proxy/pass_through_endpoints/llm_provider_handlers/cursor_passthrough_logging_handler.py": {
+ "baseline": 19,
+ "slack": 10
+ },
+ "litellm/proxy/pass_through_endpoints/llm_provider_handlers/gemini_passthrough_logging_handler.py": {
+ "baseline": 43,
+ "slack": 22
+ },
+ "litellm/proxy/pass_through_endpoints/llm_provider_handlers/openai_passthrough_logging_handler.py": {
+ "baseline": 114,
+ "slack": 57
+ },
+ "litellm/proxy/pass_through_endpoints/llm_provider_handlers/vertex_ai_live_passthrough_logging_handler.py": {
+ "baseline": 141,
+ "slack": 71
+ },
+ "litellm/proxy/pass_through_endpoints/llm_provider_handlers/vertex_passthrough_logging_handler.py": {
+ "baseline": 163,
+ "slack": 82
+ },
+ "litellm/proxy/pass_through_endpoints/managed_id_codec.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/proxy/pass_through_endpoints/managed_id_rewriter.py": {
+ "baseline": 312,
+ "slack": 156
+ },
+ "litellm/proxy/pass_through_endpoints/pass_through_endpoints.py": {
+ "baseline": 937,
+ "slack": 469
+ },
+ "litellm/proxy/pass_through_endpoints/passthrough_endpoint_router.py": {
+ "baseline": 14,
+ "slack": 7
+ },
+ "litellm/proxy/pass_through_endpoints/passthrough_guardrails.py": {
+ "baseline": 27,
+ "slack": 14
+ },
+ "litellm/proxy/pass_through_endpoints/streaming_handler.py": {
+ "baseline": 35,
+ "slack": 18
+ },
+ "litellm/proxy/pass_through_endpoints/success_handler.py": {
+ "baseline": 113,
+ "slack": 57
+ },
+ "litellm/proxy/policy_engine/attachment_registry.py": {
+ "baseline": 83,
+ "slack": 42
+ },
+ "litellm/proxy/policy_engine/init_policies.py": {
+ "baseline": 71,
+ "slack": 36
+ },
+ "litellm/proxy/policy_engine/pipeline_executor.py": {
+ "baseline": 55,
+ "slack": 28
+ },
+ "litellm/proxy/policy_engine/policy_endpoints.py": {
+ "baseline": 84,
+ "slack": 42
+ },
+ "litellm/proxy/policy_engine/policy_registry.py": {
+ "baseline": 257,
+ "slack": 129
+ },
+ "litellm/proxy/policy_engine/policy_resolve_endpoints.py": {
+ "baseline": 187,
+ "slack": 94
+ },
+ "litellm/proxy/policy_engine/policy_validator.py": {
+ "baseline": 13,
+ "slack": 7
+ },
+ "litellm/proxy/post_call_rules.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/proxy/prisma_migration.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/proxy/prometheus_cleanup.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/proxy/prompts/init_prompts.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/proxy/prompts/prompt_endpoints.py": {
+ "baseline": 181,
+ "slack": 91
+ },
+ "litellm/proxy/prompts/prompt_registry.py": {
+ "baseline": 70,
+ "slack": 35
+ },
+ "litellm/proxy/proxy_cli.py": {
+ "baseline": 308,
+ "slack": 154
+ },
+ "litellm/proxy/proxy_server.py": {
+ "baseline": 5145,
+ "slack": 2573
+ },
+ "litellm/proxy/public_endpoints/public_endpoints.py": {
+ "baseline": 165,
+ "slack": 83
+ },
+ "litellm/proxy/rag_endpoints/endpoints.py": {
+ "baseline": 249,
+ "slack": 125
+ },
+ "litellm/proxy/realtime_endpoints/endpoints.py": {
+ "baseline": 243,
+ "slack": 122
+ },
+ "litellm/proxy/rerank_endpoints/endpoints.py": {
+ "baseline": 53,
+ "slack": 27
+ },
+ "litellm/proxy/response_api_endpoints/endpoints.py": {
+ "baseline": 322,
+ "slack": 161
+ },
+ "litellm/proxy/response_polling/background_streaming.py": {
+ "baseline": 162,
+ "slack": 81
+ },
+ "litellm/proxy/response_polling/polling_handler.py": {
+ "baseline": 82,
+ "slack": 41
+ },
+ "litellm/proxy/route_llm_request.py": {
+ "baseline": 138,
+ "slack": 69
+ },
+ "litellm/proxy/search_endpoints/endpoints.py": {
+ "baseline": 59,
+ "slack": 30
+ },
+ "litellm/proxy/search_endpoints/search_tool_management.py": {
+ "baseline": 95,
+ "slack": 48
+ },
+ "litellm/proxy/search_endpoints/search_tool_registry.py": {
+ "baseline": 53,
+ "slack": 27
+ },
+ "litellm/proxy/shutdown/graceful_shutdown_manager.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/proxy/spend_tracking/budget_reservation.py": {
+ "baseline": 245,
+ "slack": 123
+ },
+ "litellm/proxy/spend_tracking/cloudzero_endpoints.py": {
+ "baseline": 121,
+ "slack": 61
+ },
+ "litellm/proxy/spend_tracking/cold_storage_handler.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/proxy/spend_tracking/spend_log_error_logger.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/proxy/spend_tracking/spend_management_endpoints.py": {
+ "baseline": 980,
+ "slack": 490
+ },
+ "litellm/proxy/spend_tracking/spend_tracking_utils.py": {
+ "baseline": 274,
+ "slack": 137
+ },
+ "litellm/proxy/spend_tracking/vantage_endpoints.py": {
+ "baseline": 177,
+ "slack": 89
+ },
+ "litellm/proxy/types_utils/utils.py": {
+ "baseline": 11,
+ "slack": 6
+ },
+ "litellm/proxy/ui_crud_endpoints/proxy_setting_endpoints.py": {
+ "baseline": 481,
+ "slack": 241
+ },
+ "litellm/proxy/utils.py": {
+ "baseline": 1731,
+ "slack": 866
+ },
+ "litellm/proxy/vector_store_endpoints/endpoints.py": {
+ "baseline": 163,
+ "slack": 82
+ },
+ "litellm/proxy/vector_store_endpoints/management_endpoints.py": {
+ "baseline": 248,
+ "slack": 124
+ },
+ "litellm/proxy/vector_store_endpoints/utils.py": {
+ "baseline": 37,
+ "slack": 19
+ },
+ "litellm/proxy/vector_store_files_endpoints/endpoints.py": {
+ "baseline": 292,
+ "slack": 146
+ },
+ "litellm/proxy/vertex_ai_endpoints/langfuse_endpoints.py": {
+ "baseline": 38,
+ "slack": 19
+ },
+ "litellm/proxy/video_endpoints/endpoints.py": {
+ "baseline": 238,
+ "slack": 119
+ },
+ "litellm/proxy/video_endpoints/utils.py": {
+ "baseline": 27,
+ "slack": 14
+ },
+ "litellm/proxy_auth/credentials.py": {
+ "baseline": 16,
+ "slack": 8
+ },
+ "litellm/rag/__init__.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/rag/ingestion/base_ingestion.py": {
+ "baseline": 64,
+ "slack": 32
+ },
+ "litellm/rag/ingestion/bedrock_ingestion.py": {
+ "baseline": 273,
+ "slack": 137
+ },
+ "litellm/rag/ingestion/file_parsers/pdf_parser.py": {
+ "baseline": 19,
+ "slack": 10
+ },
+ "litellm/rag/ingestion/gemini_ingestion.py": {
+ "baseline": 64,
+ "slack": 32
+ },
+ "litellm/rag/ingestion/openai_ingestion.py": {
+ "baseline": 31,
+ "slack": 16
+ },
+ "litellm/rag/ingestion/s3_vectors_ingestion.py": {
+ "baseline": 252,
+ "slack": 126
+ },
+ "litellm/rag/ingestion/vertex_ai_ingestion.py": {
+ "baseline": 134,
+ "slack": 67
+ },
+ "litellm/rag/main.py": {
+ "baseline": 108,
+ "slack": 54
+ },
+ "litellm/rag/rag_query.py": {
+ "baseline": 51,
+ "slack": 26
+ },
+ "litellm/realtime_api/main.py": {
+ "baseline": 165,
+ "slack": 83
+ },
+ "litellm/repositories/base_repository.py": {
+ "baseline": 54,
+ "slack": 27
+ },
+ "litellm/repositories/budget_repository.py": {
+ "baseline": 29,
+ "slack": 15
+ },
+ "litellm/repositories/config_repository.py": {
+ "baseline": 94,
+ "slack": 47
+ },
+ "litellm/repositories/credentials_repository.py": {
+ "baseline": 28,
+ "slack": 14
+ },
+ "litellm/repositories/model_repository.py": {
+ "baseline": 77,
+ "slack": 39
+ },
+ "litellm/repositories/object_permission_repository.py": {
+ "baseline": 29,
+ "slack": 15
+ },
+ "litellm/repositories/organization_repository.py": {
+ "baseline": 28,
+ "slack": 14
+ },
+ "litellm/repositories/project_repository.py": {
+ "baseline": 42,
+ "slack": 21
+ },
+ "litellm/repositories/table_repositories.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/repositories/team_repository.py": {
+ "baseline": 163,
+ "slack": 82
+ },
+ "litellm/repositories/user_repository.py": {
+ "baseline": 81,
+ "slack": 41
+ },
+ "litellm/repositories/verification_token_repository.py": {
+ "baseline": 116,
+ "slack": 58
+ },
+ "litellm/rerank_api/main.py": {
+ "baseline": 129,
+ "slack": 65
+ },
+ "litellm/rerank_api/rerank_utils.py": {
+ "baseline": 13,
+ "slack": 7
+ },
+ "litellm/responses/file_search/emulated_handler.py": {
+ "baseline": 280,
+ "slack": 140
+ },
+ "litellm/responses/litellm_completion_transformation/handler.py": {
+ "baseline": 28,
+ "slack": 14
+ },
+ "litellm/responses/litellm_completion_transformation/session_handler.py": {
+ "baseline": 43,
+ "slack": 22
+ },
+ "litellm/responses/litellm_completion_transformation/streaming_iterator.py": {
+ "baseline": 152,
+ "slack": 76
+ },
+ "litellm/responses/litellm_completion_transformation/transformation.py": {
+ "baseline": 555,
+ "slack": 278
+ },
+ "litellm/responses/main.py": {
+ "baseline": 567,
+ "slack": 284
+ },
+ "litellm/responses/mcp/chat_completions_handler.py": {
+ "baseline": 367,
+ "slack": 184
+ },
+ "litellm/responses/mcp/litellm_proxy_mcp_handler.py": {
+ "baseline": 454,
+ "slack": 227
+ },
+ "litellm/responses/mcp/mcp_streaming_iterator.py": {
+ "baseline": 202,
+ "slack": 101
+ },
+ "litellm/responses/sse_output_recovery.py": {
+ "baseline": 48,
+ "slack": 24
+ },
+ "litellm/responses/streaming_iterator.py": {
+ "baseline": 990,
+ "slack": 495
+ },
+ "litellm/responses/utils.py": {
+ "baseline": 295,
+ "slack": 148
+ },
+ "litellm/router.py": {
+ "baseline": 4343,
+ "slack": 2172
+ },
+ "litellm/router_strategy/adaptive_router/adaptive_router.py": {
+ "baseline": 48,
+ "slack": 24
+ },
+ "litellm/router_strategy/adaptive_router/bandit.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/router_strategy/adaptive_router/hooks.py": {
+ "baseline": 143,
+ "slack": 72
+ },
+ "litellm/router_strategy/adaptive_router/signals.py": {
+ "baseline": 42,
+ "slack": 21
+ },
+ "litellm/router_strategy/adaptive_router/update_queue.py": {
+ "baseline": 30,
+ "slack": 15
+ },
+ "litellm/router_strategy/auto_router/auto_router.py": {
+ "baseline": 44,
+ "slack": 22
+ },
+ "litellm/router_strategy/auto_router/litellm_encoder.py": {
+ "baseline": 19,
+ "slack": 10
+ },
+ "litellm/router_strategy/base_routing_strategy.py": {
+ "baseline": 114,
+ "slack": 57
+ },
+ "litellm/router_strategy/budget_limiter.py": {
+ "baseline": 347,
+ "slack": 174
+ },
+ "litellm/router_strategy/complexity_router/complexity_router.py": {
+ "baseline": 59,
+ "slack": 30
+ },
+ "litellm/router_strategy/complexity_router/evals/eval_complexity_router.py": {
+ "baseline": 24,
+ "slack": 12
+ },
+ "litellm/router_strategy/least_busy.py": {
+ "baseline": 155,
+ "slack": 78
+ },
+ "litellm/router_strategy/lowest_cost.py": {
+ "baseline": 211,
+ "slack": 106
+ },
+ "litellm/router_strategy/lowest_latency.py": {
+ "baseline": 404,
+ "slack": 202
+ },
+ "litellm/router_strategy/lowest_tpm_rpm.py": {
+ "baseline": 168,
+ "slack": 84
+ },
+ "litellm/router_strategy/lowest_tpm_rpm_v2.py": {
+ "baseline": 351,
+ "slack": 176
+ },
+ "litellm/router_strategy/quality_router/config.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/router_strategy/quality_router/quality_router.py": {
+ "baseline": 76,
+ "slack": 38
+ },
+ "litellm/router_strategy/simple_shuffle.py": {
+ "baseline": 29,
+ "slack": 15
+ },
+ "litellm/router_strategy/tag_based_routing.py": {
+ "baseline": 80,
+ "slack": 40
+ },
+ "litellm/router_utils/add_retry_fallback_headers.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/router_utils/batch_utils.py": {
+ "baseline": 24,
+ "slack": 12
+ },
+ "litellm/router_utils/client_initalization_utils.py": {
+ "baseline": 11,
+ "slack": 6
+ },
+ "litellm/router_utils/clientside_credential_handler.py": {
+ "baseline": 11,
+ "slack": 6
+ },
+ "litellm/router_utils/common_utils.py": {
+ "baseline": 63,
+ "slack": 32
+ },
+ "litellm/router_utils/cooldown_cache.py": {
+ "baseline": 42,
+ "slack": 21
+ },
+ "litellm/router_utils/cooldown_callbacks.py": {
+ "baseline": 22,
+ "slack": 11
+ },
+ "litellm/router_utils/cooldown_handlers.py": {
+ "baseline": 26,
+ "slack": 13
+ },
+ "litellm/router_utils/fallback_event_handlers.py": {
+ "baseline": 56,
+ "slack": 28
+ },
+ "litellm/router_utils/get_retry_from_policy.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/router_utils/handle_error.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/router_utils/health_state_cache.py": {
+ "baseline": 22,
+ "slack": 11
+ },
+ "litellm/router_utils/pattern_match_deployments.py": {
+ "baseline": 41,
+ "slack": 21
+ },
+ "litellm/router_utils/pre_call_checks/deployment_affinity_check.py": {
+ "baseline": 112,
+ "slack": 56
+ },
+ "litellm/router_utils/pre_call_checks/encrypted_content_affinity_check.py": {
+ "baseline": 86,
+ "slack": 43
+ },
+ "litellm/router_utils/pre_call_checks/model_rate_limit_check.py": {
+ "baseline": 134,
+ "slack": 67
+ },
+ "litellm/router_utils/pre_call_checks/prompt_caching_deployment_check.py": {
+ "baseline": 35,
+ "slack": 18
+ },
+ "litellm/router_utils/pre_call_checks/responses_api_deployment_check.py": {
+ "baseline": 13,
+ "slack": 7
+ },
+ "litellm/router_utils/prompt_caching_cache.py": {
+ "baseline": 44,
+ "slack": 22
+ },
+ "litellm/router_utils/router_callbacks/track_deployment_metrics.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/router_utils/search_api_router.py": {
+ "baseline": 61,
+ "slack": 31
+ },
+ "litellm/scheduler.py": {
+ "baseline": 54,
+ "slack": 27
+ },
+ "litellm/search/cost_calculator.py": {
+ "baseline": 16,
+ "slack": 8
+ },
+ "litellm/search/main.py": {
+ "baseline": 57,
+ "slack": 29
+ },
+ "litellm/secret_managers/aws_secret_manager.py": {
+ "baseline": 28,
+ "slack": 14
+ },
+ "litellm/secret_managers/aws_secret_manager_v2.py": {
+ "baseline": 132,
+ "slack": 66
+ },
+ "litellm/secret_managers/base_secret_manager.py": {
+ "baseline": 11,
+ "slack": 6
+ },
+ "litellm/secret_managers/custom_secret_manager_loader.py": {
+ "baseline": 19,
+ "slack": 10
+ },
+ "litellm/secret_managers/cyberark_secret_manager.py": {
+ "baseline": 84,
+ "slack": 42
+ },
+ "litellm/secret_managers/get_azure_ad_token_provider.py": {
+ "baseline": 11,
+ "slack": 6
+ },
+ "litellm/secret_managers/google_kms.py": {
+ "baseline": 6,
+ "slack": 3
+ },
+ "litellm/secret_managers/google_secret_manager.py": {
+ "baseline": 18,
+ "slack": 9
+ },
+ "litellm/secret_managers/hashicorp_secret_manager.py": {
+ "baseline": 220,
+ "slack": 110
+ },
+ "litellm/secret_managers/main.py": {
+ "baseline": 37,
+ "slack": 19
+ },
+ "litellm/secret_managers/secret_manager_handler.py": {
+ "baseline": 45,
+ "slack": 23
+ },
+ "litellm/setup_wizard.py": {
+ "baseline": 109,
+ "slack": 55
+ },
+ "litellm/skills/main.py": {
+ "baseline": 215,
+ "slack": 108
+ },
+ "litellm/timeout.py": {
+ "baseline": 70,
+ "slack": 35
+ },
+ "litellm/types/access_group.py": {
+ "baseline": 10,
+ "slack": 5
+ },
+ "litellm/types/adapter.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/types/agents.py": {
+ "baseline": 117,
+ "slack": 59
+ },
+ "litellm/types/caching.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/types/completion.py": {
+ "baseline": 33,
+ "slack": 17
+ },
+ "litellm/types/compression.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/types/containers/main.py": {
+ "baseline": 96,
+ "slack": 48
+ },
+ "litellm/types/embedding.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/types/files.py": {
+ "baseline": 12,
+ "slack": 6
+ },
+ "litellm/types/google_genai/main.py": {
+ "baseline": 11,
+ "slack": 6
+ },
+ "litellm/types/guardrails.py": {
+ "baseline": 81,
+ "slack": 41
+ },
+ "litellm/types/images/main.py": {
+ "baseline": 12,
+ "slack": 6
+ },
+ "litellm/types/integrations/anthropic_cache_control_hook.py": {
+ "baseline": 6,
+ "slack": 3
+ },
+ "litellm/types/integrations/argilla.py": {
+ "baseline": 5,
+ "slack": 3
+ },
+ "litellm/types/integrations/arize.py": {
+ "baseline": 4,
+ "slack": 2
+ },
+ "litellm/types/integrations/arize_phoenix.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/types/integrations/base_health_check.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/types/integrations/compression_interception.py": {
+ "baseline": 5,
+ "slack": 3
+ },
+ "litellm/types/integrations/custom_logger.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/types/integrations/datadog.py": {
+ "baseline": 6,
+ "slack": 3
+ },
+ "litellm/types/integrations/datadog_cost_management.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/types/integrations/datadog_llm_obs.py": {
+ "baseline": 39,
+ "slack": 20
+ },
+ "litellm/types/integrations/datadog_metrics.py": {
+ "baseline": 8,
+ "slack": 4
+ },
+ "litellm/types/integrations/gcs_bucket.py": {
+ "baseline": 6,
+ "slack": 3
+ },
+ "litellm/types/integrations/langfuse.py": {
+ "baseline": 8,
+ "slack": 4
+ },
+ "litellm/types/integrations/langfuse_otel.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/types/integrations/langsmith.py": {
+ "baseline": 12,
+ "slack": 6
+ },
+ "litellm/types/integrations/pagerduty.py": {
+ "baseline": 31,
+ "slack": 16
+ },
+ "litellm/types/integrations/posthog.py": {
+ "baseline": 5,
+ "slack": 3
+ },
+ "litellm/types/integrations/prometheus.py": {
+ "baseline": 60,
+ "slack": 30
+ },
+ "litellm/types/integrations/rag/bedrock_knowledgebase.py": {
+ "baseline": 47,
+ "slack": 24
+ },
+ "litellm/types/integrations/s3_v2.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/types/integrations/slack_alerting.py": {
+ "baseline": 22,
+ "slack": 11
+ },
+ "litellm/types/integrations/websearch_interception.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/types/interactions/generated.py": {
+ "baseline": 77,
+ "slack": 39
+ },
+ "litellm/types/litellm_core_utils/streaming_chunk_builder_utils.py": {
+ "baseline": 8,
+ "slack": 4
+ },
+ "litellm/types/llms/aiml.py": {
+ "baseline": 10,
+ "slack": 5
+ },
+ "litellm/types/llms/anthropic.py": {
+ "baseline": 258,
+ "slack": 129
+ },
+ "litellm/types/llms/anthropic_messages/anthropic_response.py": {
+ "baseline": 26,
+ "slack": 13
+ },
+ "litellm/types/llms/anthropic_skills.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/types/llms/azure_ai.py": {
+ "baseline": 7,
+ "slack": 4
+ },
+ "litellm/types/llms/base.py": {
+ "baseline": 29,
+ "slack": 15
+ },
+ "litellm/types/llms/bedrock.py": {
+ "baseline": 402,
+ "slack": 201
+ },
+ "litellm/types/llms/bedrock_agentcore.py": {
+ "baseline": 28,
+ "slack": 14
+ },
+ "litellm/types/llms/bedrock_invoke_agents.py": {
+ "baseline": 46,
+ "slack": 23
+ },
+ "litellm/types/llms/cohere.py": {
+ "baseline": 46,
+ "slack": 23
+ },
+ "litellm/types/llms/custom_http.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/types/llms/custom_llm.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/types/llms/databricks.py": {
+ "baseline": 36,
+ "slack": 18
+ },
+ "litellm/types/llms/gemini.py": {
+ "baseline": 64,
+ "slack": 32
+ },
+ "litellm/types/llms/langgraph.py": {
+ "baseline": 19,
+ "slack": 10
+ },
+ "litellm/types/llms/mistral.py": {
+ "baseline": 9,
+ "slack": 5
+ },
+ "litellm/types/llms/oci.py": {
+ "baseline": 62,
+ "slack": 31
+ },
+ "litellm/types/llms/ollama.py": {
+ "baseline": 12,
+ "slack": 6
+ },
+ "litellm/types/llms/openai.py": {
+ "baseline": 750,
+ "slack": 375
+ },
+ "litellm/types/llms/openai_evals.py": {
+ "baseline": 68,
+ "slack": 34
+ },
+ "litellm/types/llms/openrouter.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/types/llms/recraft.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/types/llms/rerank.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/types/llms/stability.py": {
+ "baseline": 60,
+ "slack": 30
+ },
+ "litellm/types/llms/vertex_ai.py": {
+ "baseline": 347,
+ "slack": 174
+ },
+ "litellm/types/llms/vertex_ai_text_to_speech.py": {
+ "baseline": 9,
+ "slack": 5
+ },
+ "litellm/types/llms/watsonx.py": {
+ "baseline": 14,
+ "slack": 7
+ },
+ "litellm/types/llms/xai.py": {
+ "baseline": 12,
+ "slack": 6
+ },
+ "litellm/types/management_endpoints/cache_settings_endpoints.py": {
+ "baseline": 5,
+ "slack": 3
+ },
+ "litellm/types/management_endpoints/router_settings_endpoints.py": {
+ "baseline": 23,
+ "slack": 12
+ },
+ "litellm/types/mcp.py": {
+ "baseline": 34,
+ "slack": 17
+ },
+ "litellm/types/mcp_server/mcp_server_manager.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/types/mcp_server/mcp_toolset.py": {
+ "baseline": 6,
+ "slack": 3
+ },
+ "litellm/types/mcp_server/tool_registry.py": {
+ "baseline": 10,
+ "slack": 5
+ },
+ "litellm/types/memory_management.py": {
+ "baseline": 9,
+ "slack": 5
+ },
+ "litellm/types/passthrough_endpoints/pass_through_endpoints.py": {
+ "baseline": 5,
+ "slack": 3
+ },
+ "litellm/types/prompts/init_prompts.py": {
+ "baseline": 19,
+ "slack": 10
+ },
+ "litellm/types/proxy/claude_code_endpoints.py": {
+ "baseline": 25,
+ "slack": 13
+ },
+ "litellm/types/proxy/cloudzero_endpoints.py": {
+ "baseline": 6,
+ "slack": 3
+ },
+ "litellm/types/proxy/compliance_endpoints.py": {
+ "baseline": 8,
+ "slack": 4
+ },
+ "litellm/types/proxy/control_plane_endpoints.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/types/proxy/discovery_endpoints/ui_discovery_endpoints.py": {
+ "baseline": 5,
+ "slack": 3
+ },
+ "litellm/types/proxy/guardrails/guardrail_hooks/azure/azure_prompt_shield.py": {
+ "baseline": 5,
+ "slack": 3
+ },
+ "litellm/types/proxy/guardrails/guardrail_hooks/azure/azure_text_moderation.py": {
+ "baseline": 12,
+ "slack": 6
+ },
+ "litellm/types/proxy/guardrails/guardrail_hooks/base.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/types/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py": {
+ "baseline": 60,
+ "slack": 30
+ },
+ "litellm/types/proxy/guardrails/guardrail_hooks/block_code_execution.py": {
+ "baseline": 12,
+ "slack": 6
+ },
+ "litellm/types/proxy/guardrails/guardrail_hooks/cisco_ai_defense.py": {
+ "baseline": 5,
+ "slack": 3
+ },
+ "litellm/types/proxy/guardrails/guardrail_hooks/dynamoai.py": {
+ "baseline": 31,
+ "slack": 16
+ },
+ "litellm/types/proxy/guardrails/guardrail_hooks/enkryptai.py": {
+ "baseline": 29,
+ "slack": 15
+ },
+ "litellm/types/proxy/guardrails/guardrail_hooks/generic_guardrail_api.py": {
+ "baseline": 20,
+ "slack": 10
+ },
+ "litellm/types/proxy/guardrails/guardrail_hooks/ibm/ibm_detector.py": {
+ "baseline": 15,
+ "slack": 8
+ },
+ "litellm/types/proxy/guardrails/guardrail_hooks/javelin.py": {
+ "baseline": 34,
+ "slack": 17
+ },
+ "litellm/types/proxy/guardrails/guardrail_hooks/lakera_ai_v2.py": {
+ "baseline": 24,
+ "slack": 12
+ },
+ "litellm/types/proxy/guardrails/guardrail_hooks/litellm_content_filter.py": {
+ "baseline": 36,
+ "slack": 18
+ },
+ "litellm/types/proxy/guardrails/guardrail_hooks/presidio.py": {
+ "baseline": 10,
+ "slack": 5
+ },
+ "litellm/types/proxy/guardrails/guardrail_hooks/tool_permission.py": {
+ "baseline": 22,
+ "slack": 11
+ },
+ "litellm/types/proxy/guardrails/guardrail_hooks/xecguard.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/types/proxy/litellm_pre_call_utils.py": {
+ "baseline": 2,
+ "slack": 1
+ },
+ "litellm/types/proxy/management_endpoints/common_daily_activity.py": {
+ "baseline": 11,
+ "slack": 6
+ },
+ "litellm/types/proxy/management_endpoints/config_overrides.py": {
+ "baseline": 3,
+ "slack": 2
+ },
+ "litellm/types/proxy/management_endpoints/internal_user_endpoints.py": {
+ "baseline": 27,
+ "slack": 14
+ },
+ "litellm/types/proxy/management_endpoints/key_management_endpoints.py": {
+ "baseline": 11,
+ "slack": 6
+ },
+ "litellm/types/proxy/management_endpoints/model_management_endpoints.py": {
+ "baseline": 11,
+ "slack": 6
+ },
+ "litellm/types/proxy/management_endpoints/scim_v2.py": {
+ "baseline": 45,
+ "slack": 23
+ },
+ "litellm/types/proxy/management_endpoints/team_endpoints.py": {
+ "baseline": 20,
+ "slack": 10
+ },
+ "litellm/types/proxy/management_endpoints/ui_sso.py": {
+ "baseline": 16,
+ "slack": 8
+ },
+ "litellm/types/proxy/policy_engine/pipeline_types.py": {
+ "baseline": 8,
+ "slack": 4
+ },
+ "litellm/types/proxy/policy_engine/policy_types.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/types/proxy/policy_engine/resolver_types.py": {
+ "baseline": 30,
+ "slack": 15
+ },
+ "litellm/types/proxy/policy_engine/validation_types.py": {
+ "baseline": 5,
+ "slack": 3
+ },
+ "litellm/types/proxy/prompt_endpoints.py": {
+ "baseline": 1,
+ "slack": 1
+ },
+ "litellm/types/proxy/public_endpoints/public_endpoints.py": {
+ "baseline": 22,
+ "slack": 11
+ },
+ "litellm/types/proxy/ui_sso.py": {
+ "baseline": 12,
+ "slack": 6
+ },
+ "litellm/types/proxy/vantage_endpoints.py": {
+ "baseline": 6,
+ "slack": 3
+ },
+ "litellm/types/rag.py": {
+ "baseline": 78,
+ "slack": 39
+ },
+ "litellm/types/realtime.py": {
+ "baseline": 28,
+ "slack": 14
+ },
+ "litellm/types/rerank.py": {
+ "baseline": 29,
+ "slack": 15
+ },
+ "litellm/types/responses/main.py": {
+ "baseline": 49,
+ "slack": 25
+ },
+ "litellm/types/router.py": {
+ "baseline": 194,
+ "slack": 97
+ },
+ "litellm/types/search.py": {
+ "baseline": 21,
+ "slack": 11
+ },
+ "litellm/types/services.py": {
+ "baseline": 13,
+ "slack": 7
+ },
+ "litellm/types/tag_management.py": {
+ "baseline": 5,
+ "slack": 3
+ },
+ "litellm/types/tool_management.py": {
+ "baseline": 27,
+ "slack": 14
+ },
+ "litellm/types/utils.py": {
+ "baseline": 1085,
+ "slack": 543
+ },
+ "litellm/types/vector_store_files.py": {
+ "baseline": 38,
+ "slack": 19
+ },
+ "litellm/types/vector_stores.py": {
+ "baseline": 118,
+ "slack": 59
+ },
+ "litellm/types/videos/main.py": {
+ "baseline": 59,
+ "slack": 30
+ },
+ "litellm/types/videos/utils.py": {
+ "baseline": 5,
+ "slack": 3
+ },
+ "litellm/utils.py": {
+ "baseline": 3367,
+ "slack": 1684
+ },
+ "litellm/vector_store_files/main.py": {
+ "baseline": 244,
+ "slack": 122
+ },
+ "litellm/vector_store_files/utils.py": {
+ "baseline": 17,
+ "slack": 9
+ },
+ "litellm/vector_stores/main.py": {
+ "baseline": 268,
+ "slack": 134
+ },
+ "litellm/vector_stores/utils.py": {
+ "baseline": 19,
+ "slack": 10
+ },
+ "litellm/vector_stores/vector_store_registry.py": {
+ "baseline": 94,
+ "slack": 47
+ },
+ "litellm/videos/main.py": {
+ "baseline": 513,
+ "slack": 257
+ },
+ "litellm/videos/utils.py": {
+ "baseline": 54,
+ "slack": 27
+ }
+}
diff --git a/scripts/budget_ratchet_check.py b/scripts/budget_ratchet_check.py
index c4b2c3ee655..6406b0d888e 100644
--- a/scripts/budget_ratchet_check.py
+++ b/scripts/budget_ratchet_check.py
@@ -1,8 +1,8 @@
#!/usr/bin/env python3
"""Non-gating ratchet guard: budget ceilings may only fall, never rise.
-Every `*-budget.json` file (ruff-strict, type-discipline, mypy-code, basedpyright-code) is a
-one-way ratchet: each rule's ceiling is `baseline + slack`, and the whole point is
+Every `*-budget.json` file (ruff-strict, type-discipline, mypy-code, basedpyright-code,
+any-discipline) is a one-way ratchet: each rule's ceiling is `baseline + slack`, and the whole point is
to drive that number DOWN over time. This check compares every budget file against
its own content at the merge-base with the target branch and fails (exits 1, red) if:
@@ -12,6 +12,12 @@ its own content at the merge-base with the target branch and fails (exits 1, red
New rules and lowered/equal ceilings are fine.
+The any-discipline budget is keyed by file rather than rule: its gate treats an
+absent file as ceiling 0 (the file must be Any-free), so an entry vanishing means
+that file was cleaned to zero -- a tightening, and exactly the cleanup this
+ratchet exists to encourage. Such a budget is therefore exempt from the
+dropped-entry rule (a raised ceiling is still caught).
+
This is deliberately NOT a gating check. It should turn the run red so that a
loosening is impossible to miss in review, but it must stay OUT of the
branch-protection required-checks list: a justified bump (e.g. banning a new API,
@@ -40,8 +46,15 @@ DEFAULT_BUDGETS: tuple[str, ...] = (
"type-discipline-budget.json",
"mypy-code-budget.json",
"basedpyright-code-budget.json",
+ "any-discipline-budget.json",
)
+# File-keyed budgets whose gate treats an absent entry as ceiling 0 (the file
+# must stay clean). Dropping an entry there is a tightening, not the "untracked,
+# now unbounded" loosening a vanished rule is for the rule-keyed budgets, so a
+# dropped entry must not read as a regression.
+ZERO_FLOOR_BUDGETS: frozenset[str] = frozenset({"any-discipline-budget.json"})
+
class Regression(NamedTuple):
budget: str
@@ -99,10 +112,12 @@ def regressions_for(rel: str, base: dict | None, head: dict | None) -> list[Regr
base_caps = _caps(base)
head_caps = _caps(head)
+ drop_floors_to_zero = rel in ZERO_FLOOR_BUDGETS
out: list[Regression] = []
for rule, base_cap in sorted(base_caps.items()):
if rule not in head_caps:
- out.append(Regression(rel, rule, f"rule dropped (ceiling {base_cap} -> removed)"))
+ if not drop_floors_to_zero:
+ out.append(Regression(rel, rule, f"rule dropped (ceiling {base_cap} -> removed)"))
elif head_caps[rule] > base_cap:
out.append(Regression(rel, rule, f"ceiling raised {base_cap} -> {head_caps[rule]}"))
return out
diff --git a/scripts/check_any_discipline.py b/scripts/check_any_discipline.py
index 76d393222f0..5b8c83e63e0 100644
--- a/scripts/check_any_discipline.py
+++ b/scripts/check_any_discipline.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-"""Any-discipline gate: fail when a *changed* file holds a value typed `Any`.
+"""Any-discipline gate: fail when a changed file exceeds its `Any` budget.
Where ruff, `mypy --strict`, and even basedpyright's `reportAny` stop short, this
catches the case that actually bites: a *union* hiding an `Any`. For example
@@ -7,18 +7,26 @@ catches the case that actually bites: a *union* hiding an `Any`. For example
-> `list[Any]`/`dict[..., Any]`. Any value whose inferred type *contains* `Any`
(recursively, through unions / generics / tuples) is reported.
-Scope: changed-only, changed-lines
-----------------------------------
-litellm already contains a large amount of pre-existing `Any` (a single legacy
-file can have >100 findings), and a whole-tree scan would have to re-export types
-for litellm's entire import closure on every run (~2 min, ~3 GB). So this gate is
-*changed-only* and reports a finding only on a line that the diff against
-`--base` actually adds or edits (untracked files count as wholly new). A brand
-new file is therefore checked in full, while editing a legacy file only requires
-*your* lines to be clean -- you can't introduce an `X | Any`, but you aren't
-forced to clean the file's existing debt. This mirrors how `ruff_strict_gate.py`
-blames a change only for the violations it introduces; cold legacy code is left
-to the ratchet gates (mypy/basedpyright/ruff budgets).
+Scope: changed files, per-file budget
+-------------------------------------
+litellm carries a large amount of pre-existing `Any` (a single legacy file can
+have >100 findings). Rather than force every touched line clean (the original
+changed-lines rule, which tripped on merely *editing* a legacy `X | Any` line),
+this gate grandfathers each file: `any-discipline-budget.json` records every
+file's current count of Any-typed values, and a file fails only when its count
+exceeds `baseline + slack`, where `slack` is 50% headroom (rounded up). New or
+unbudgeted files have baseline 0, so they stay airtight.
+
+Only *changed* files (vs the merge-base with `--base`) are re-type-checked -- an
+unchanged file's count can't move from edits this branch didn't make -- so the
+per-PR cost equals re-checking just those files, exactly like the original
+changed-lines gate. The whole-tree scan needed to (re)capture the budget
+(~2 min, ~3 GB) runs only under `--update`.
+
+The budget is a one-way ratchet (the same `{baseline, slack}` shape as the
+ruff / mypy / basedpyright budgets) guarded by `scripts/budget_ratchet_check.py`:
+a file's ceiling may fall but never rise. Drive a file's count down and rerun
+`--update` (`make lint-any-budget-update`) to lock in the lower ceiling.
How it works
------------
@@ -36,8 +44,9 @@ Rules
-----
Codes share the `LIT***` namespace with `scripts/check_type_discipline.py` (PR
#30500), which owns LIT001/002/003/004/006/007/008. This gate claims the rest:
-LIT009 A value expression's inferred type is, or contains, `Any`.
- Suppress with `# any-ok: <reason>` on the offending line.
+LIT009 A value expression's inferred type is, or contains, `Any`. Budgeted
+ per file (a file fails when its count exceeds `baseline + slack`).
+ Suppress an individual line with `# any-ok: <reason>`.
LIT005 An `# any-ok` suppression without a reason (the shared
suppression-needs-a-reason code, same as `# cast-ok` / `# guard-ok`).
LIT000 Setup failure: mypy could not build, or a target file could not be read.
@@ -48,13 +57,16 @@ whose signature mentions `Any` is not flagged -- only the value its call produce
Usage
-----
- # gate mode (CI / pre-push): check changed lines under litellm/
+ # gate mode (CI / pre-push): per-file Any budget on changed files
uv run --no-sync python scripts/check_any_discipline.py --changed --base origin/litellm_internal_staging
- # whole-file spot-check (no line filter), paths relative to repo root
+ # re-capture the per-file budget across the whole tree (ratchet)
+ uv run --no-sync python scripts/check_any_discipline.py --update
+
+ # whole-file spot-check (no budget, no line filter), paths relative to repo root
uv run --no-sync python scripts/check_any_discipline.py litellm/budget_manager.py
-Exit code 1 if any Any-tainted value is found, 2 on a setup/usage error.
+Exit code 1 if a file is over budget (or a hard rule trips), 2 on a setup error.
"""
from __future__ import annotations
@@ -66,7 +78,7 @@ import re
import subprocess
import sys
import tokenize
-from collections.abc import Iterable, Sequence
+from collections.abc import Callable, Iterable, Sequence
from pathlib import Path
from typing import NamedTuple
@@ -104,6 +116,7 @@ MYPY_INI = LITELLM_DIR / "mypy.ini"
CACHE_DIR = REPO_ROOT / ".mypy_cache_any"
PY_TAG = f"{sys.version_info.major}.{sys.version_info.minor}"
DEFAULT_BASE = "origin/litellm_internal_staging"
+BUDGET_PATH = REPO_ROOT / "any-discipline-budget.json"
MIN_REASON_LEN = 3
ANY_OK_RE = re.compile(r"#\s*any-ok(?::\s*(?P<reason>.*))?")
@@ -164,32 +177,50 @@ class Violation(NamedTuple):
# --------------------------------------------------------------------------- #
-def contains_any(t: Type, _seen: set[int] | None = None) -> bool:
+# Recursive type aliases (e.g. a JSON-like `T = Union[..., list[T], dict[str, T]]`)
+# make `get_proper_type` yield a fresh object at every unfold, so an id()-based
+# cycle guard never trips and a naive recursion overflows the stack. We walk
+# iteratively and cap the depth: a real `Any` lives at shallow depth in the
+# alias's definition, so a deep alias that has not produced one by `_MAX_DEPTH`
+# never will. (The changed-lines gate never hit this; a whole-tree scan does.)
+_MAX_DEPTH = 100
+
+
+def contains_any(t: Type) -> bool:
"""True if a *value* of type ``t`` carries `Any` anywhere meaningful."""
- seen = _seen if _seen is not None else set()
- p = get_proper_type(t)
- if id(p) in seen:
- return False
- seen.add(id(p))
-
- # A function/method *reference* whose signature mentions Any is not itself an
- # unsafe value -- only its eventual call result is. Don't recurse into it.
- if isinstance(p, (CallableType, Overloaded)):
- return False
- if isinstance(p, AnyType):
- return p.type_of_any not in _HARMLESS_ANY
- if isinstance(p, UnionType):
- return any(contains_any(item, seen) for item in p.items)
- if isinstance(p, Instance):
- value_arg_indices = _SYNTHETIC_SEND_YIELD_VALUE_ARGS.get(p.type.fullname)
- if value_arg_indices is not None:
- return any(
- index < len(p.args) and contains_any(p.args[index], seen)
- for index in value_arg_indices
- )
- return any(contains_any(arg, seen) for arg in p.args)
- if isinstance(p, TupleType):
- return any(contains_any(item, seen) for item in p.items)
+ seen: set[int] = set()
+ stack: list[tuple[Type, int]] = [(t, 0)]
+ while stack:
+ cur, depth = stack.pop()
+ if depth > _MAX_DEPTH:
+ continue
+ p = get_proper_type(cur)
+ if id(p) in seen:
+ continue
+ seen.add(id(p))
+
+ # A function/method *reference* whose signature mentions Any is not itself
+ # an unsafe value -- only its eventual call result is. Don't recurse in.
+ if isinstance(p, (CallableType, Overloaded)):
+ continue
+ if isinstance(p, AnyType):
+ if p.type_of_any not in _HARMLESS_ANY:
+ return True
+ continue
+ if isinstance(p, UnionType):
+ stack.extend((item, depth + 1) for item in p.items)
+ elif isinstance(p, Instance):
+ value_arg_indices = _SYNTHETIC_SEND_YIELD_VALUE_ARGS.get(p.type.fullname)
+ if value_arg_indices is None:
+ stack.extend((arg, depth + 1) for arg in p.args)
+ else:
+ stack.extend(
+ (p.args[index], depth + 1)
+ for index in value_arg_indices
+ if index < len(p.args)
+ )
+ elif isinstance(p, TupleType):
+ stack.extend((item, depth + 1) for item in p.items)
return False
@@ -514,65 +545,233 @@ def _in_scope(v: Violation, line_map: dict[str, LineScope] | None) -> bool:
if line_map is None or v.code == "LIT000":
return True
lines = line_map.get(v.path.as_posix())
- return lines is ALL_LINES or (lines is not None and v.line in lines)
+ return lines is ALL_LINES or (isinstance(lines, set) and v.line in lines)
+
+
+# --------------------------------------------------------------------------- #
+# Per-file Any budget (one-way ratchet, 50% headroom; ratchet-checked)
+# --------------------------------------------------------------------------- #
+
+
+def _slack_for(baseline: int) -> int:
+ """50% headroom, rounded up so even a 1-Any file gets a little room."""
+ return (baseline + 1) // 2
+
+
+def _ceiling(spec: dict[str, int]) -> int:
+ """A file's ceiling: ``baseline + slack`` (0 for an absent/empty entry)."""
+ return int(spec.get("baseline", 0)) + int(spec.get("slack", 0))
+
+
+def load_budget() -> dict[str, dict[str, int]]:
+ """Read ``any-discipline-budget.json`` ({path: {baseline, slack}}); {} if absent."""
+ if not BUDGET_PATH.exists():
+ return {}
+ try:
+ data = json.loads(BUDGET_PATH.read_text())
+ except (OSError, ValueError):
+ return {}
+ return data if isinstance(data, dict) else {}
+
+
+def save_budget(counts: dict[str, int]) -> None:
+ """Write a fresh budget from per-file counts, with 50% headroom each.
+
+ Files with zero Any are omitted: an absent entry means baseline 0, so a
+ file's first Any always trips the gate until it is deliberately baselined."""
+ budget = {
+ path: {"baseline": n, "slack": _slack_for(n)}
+ for path, n in counts.items()
+ if n > 0
+ }
+ BUDGET_PATH.write_text(json.dumps(budget, indent=2, sort_keys=True) + "\n")
+
+
+def lit009_counts(violations: Iterable[Violation]) -> dict[str, int]:
+ """Count LIT009 (Any-typed value) findings per repo-relative file path."""
+ counts: dict[str, int] = {}
+ for v in violations:
+ if v.code == "LIT009":
+ key = v.path.as_posix()
+ counts[key] = counts.get(key, 0) + 1
+ return counts
+
+
+def all_litellm_py_files() -> list[str] | None:
+ """Every tracked ``.py`` under litellm/, as litellm-package-relative paths;
+ None if git is unavailable / not a repo (mirrors ``changed_line_map``)."""
+ try:
+ tracked = _git("ls-files", "--", "litellm")
+ except (subprocess.CalledProcessError, FileNotFoundError):
+ return None
+ return _to_litellm_relative(
+ REPO_ROOT / name for name in tracked if name.endswith(".py")
+ )
+
+
+def update_budget(
+ list_files: Callable[[], list[str] | None] = all_litellm_py_files,
+) -> int:
+ """Whole-tree scan: recapture every file's Any count into the budget."""
+ rel_paths = list_files()
+ if rel_paths is None:
+ print(
+ "check_any_discipline: not a git repository; cannot capture the budget",
+ file=sys.stderr,
+ )
+ return 2
+ if not rel_paths:
+ print("check_any_discipline: no litellm/*.py files found", file=sys.stderr)
+ return 2
+ violations = check_files(rel_paths)
+ build_errors = [v for v in violations if v.code == "LIT000"]
+ if build_errors:
+ for v in build_errors:
+ print(v.render(), file=sys.stderr)
+ print(
+ "FAIL: mypy could not build the tree; budget left unchanged.",
+ file=sys.stderr,
+ )
+ return 2
+ counts = lit009_counts(violations)
+ save_budget(counts)
+ print(
+ f"Wrote {BUDGET_PATH.name}: "
+ f"{sum(1 for n in counts.values() if n > 0)} file(s), "
+ f"{sum(counts.values())} Any-typed value(s) baselined (50% headroom each)."
+ )
+ return 0
+
+
+def _report_over_budget(
+ path: str,
+ count: int,
+ spec: dict[str, int] | None,
+ lit009: list[Violation],
+ line_map: dict[str, LineScope],
+) -> None:
+ """Print one over-budget file plus the Any findings on its changed lines."""
+ ceiling = _ceiling(spec or {})
+ if spec:
+ why = f"baseline {spec['baseline']} + 50% slack {spec['slack']} = ceiling {ceiling}"
+ else:
+ why = "no budget entry -> baseline 0 (a new/unbudgeted file must be Any-free)"
+ print(f"{path}: {count} Any-typed value(s) total, over budget ({why})")
+ # Surface the findings on changed lines first: the ones this branch most
+ # likely just added, and the cheapest path back under the ceiling.
+ scope = line_map.get(path)
+ for v in sorted(lit009):
+ if scope is ALL_LINES or (isinstance(scope, set) and v.line in scope):
+ print(f" changed-line Any {v.line}:{v.col} {v.message}")
+
+
+def run_gate(base: str) -> int:
+ """Gate changed files under litellm/ against the committed per-file budget."""
+ line_map = changed_line_map(base)
+ if line_map is None:
+ print(
+ "check_any_discipline: not a git repository; nothing to check",
+ file=sys.stderr,
+ )
+ return 0
+ rel_paths = _to_litellm_relative((REPO_ROOT / name).resolve() for name in line_map)
+ if not rel_paths:
+ print("OK: no changed Python files under litellm/ to check")
+ return 0
+
+ violations = check_files(rel_paths)
+ budget = load_budget()
+
+ # Hard rules, independent of the budget: a build/read failure (always), and a
+ # reasonless `# any-ok` on a line this branch touched.
+ hard = sorted(
+ v
+ for v in violations
+ if v.code == "LIT000" or (v.code == "LIT005" and _in_scope(v, line_map))
+ )
+
+ # Per-file Any budget: a changed file fails when its total Any count exceeds
+ # its ceiling. Unchanged files keep their committed baseline (never re-scanned).
+ counts = lit009_counts(violations)
+ lit009_by_file: dict[str, list[Violation]] = {}
+ for v in violations:
+ if v.code == "LIT009":
+ lit009_by_file.setdefault(v.path.as_posix(), []).append(v)
+ over_budget = [
+ (path, count)
+ for path, count in sorted(counts.items())
+ if count > _ceiling(budget.get(path, {}))
+ ]
+
+ if not hard and not over_budget:
+ print(
+ f"OK: {len(rel_paths)} changed file(s) under litellm/ are within their Any budget"
+ )
+ return 0
+
+ for v in hard:
+ print(v.render())
+ for path, count in over_budget:
+ _report_over_budget(
+ path, count, budget.get(path), lit009_by_file.get(path, []), line_map
+ )
+
+ print(
+ f"\nFAIL: {len(hard)} hard violation(s), {len(over_budget)} file(s) over their Any budget.\n"
+ "Give the new values concrete types (validate untyped input with Pydantic) to get back\n"
+ "under the file's ceiling, or annotate a genuine boundary line `# any-ok: <reason>`.\n"
+ "Re-baseline with `make lint-any-budget-update` only to lock in a reduction.",
+ file=sys.stderr,
+ )
+ return 1
+
+
+def spot_check(rel_paths: Sequence[str]) -> int:
+ """Explicit-paths mode: report every finding in the files (no budget)."""
+ violations = sorted(check_files(rel_paths))
+ for v in violations:
+ print(v.render())
+ if violations:
+ print(f"\nFAIL: {len(violations)} Any-discipline finding(s).", file=sys.stderr)
+ return 1
+ print(f"OK: {len(rel_paths)} file(s) have no Any-typed values")
+ return 0
def main(argv: Sequence[str]) -> int:
parser = argparse.ArgumentParser(
- description="Any-discipline gate (changed-only, changed-lines)."
+ description="Any-discipline gate (changed files, per-file Any budget)."
)
parser.add_argument(
"paths",
nargs="*",
- help="explicit files (repo-root relative); whole-file, no line filter",
+ help="explicit files (repo-root relative); whole-file spot-check, no budget",
)
parser.add_argument(
"--changed",
action="store_true",
- help="check changed lines under litellm/ vs --base",
+ help="gate changed files under litellm/ vs --base against the per-file budget",
+ )
+ parser.add_argument(
+ "--update",
+ action="store_true",
+ help="recapture the whole-tree per-file budget (any-discipline-budget.json)",
)
parser.add_argument("--base", default=os.environ.get("ANY_GATE_BASE", DEFAULT_BASE))
args = parser.parse_args(list(argv))
- line_map: dict[str, LineScope] | None = None
+ if args.update:
+ return update_budget()
if args.changed:
- line_map = changed_line_map(args.base)
- if line_map is None:
- print(
- "check_any_discipline: not a git repository; nothing to check",
- file=sys.stderr,
- )
- return 0
- rel_paths = _to_litellm_relative(
- (REPO_ROOT / name).resolve() for name in line_map
- )
- elif args.paths:
+ return run_gate(args.base)
+ if args.paths:
rel_paths = _to_litellm_relative((REPO_ROOT / p).resolve() for p in args.paths)
- else:
- parser.error("pass --changed or explicit file paths")
- return 2
-
- if not rel_paths:
- print("OK: no changed Python lines under litellm/ to check")
- return 0
-
- violations = tuple(v for v in check_files(rel_paths) if _in_scope(v, line_map))
-
- for v in sorted(violations):
- print(v.render())
-
- if violations:
- n = len(violations)
- print(
- f"\nFAIL: {n} Any-discipline violation(s) on changed lines.\n"
- "Give the value a concrete type, or annotate the line `# any-ok: <reason>`.",
- file=sys.stderr,
- )
- return 1
- print(
- f"OK: {len(rel_paths)} changed file(s) under litellm/ have no Any-typed values on changed lines"
- )
- return 0
+ if not rel_paths:
+ print("check_any_discipline: no litellm/*.py paths given", file=sys.stderr)
+ return 2
+ return spot_check(rel_paths)
+ parser.error("pass --changed, --update, or explicit file paths")
+ return 2
if __name__ == "__main__":
diff --git a/tests/test_litellm/test_budget_ratchet_check.py b/tests/test_litellm/test_budget_ratchet_check.py
index a7ae9deaf87..8c4150fd36b 100644
--- a/tests/test_litellm/test_budget_ratchet_check.py
+++ b/tests/test_litellm/test_budget_ratchet_check.py
@@ -51,6 +51,23 @@ def test_new_rule_in_head_is_clean():
assert ratchet.regressions_for("b.json", {}, {"LIT009": _spec_of(5, 0)}) == []
+def test_dropped_file_in_the_any_budget_is_not_a_regression():
+ # any-discipline is file-keyed: an absent file means ceiling 0, so cleaning a
+ # file to zero (which drops its entry on --update) is a tightening, never the
+ # loosening a dropped rule is for the rule-keyed budgets.
+ base = {"litellm/x.py": _spec_of(10, 5)}
+ assert ratchet.regressions_for("any-discipline-budget.json", base, {}) == []
+
+
+def test_raised_ceiling_in_the_any_budget_is_still_a_regression():
+ base = {"litellm/x.py": _spec_of(10, 5)} # ceiling 15
+ regs = ratchet.regressions_for(
+ "any-discipline-budget.json", base, {"litellm/x.py": _spec_of(20, 10)} # ceiling 30
+ )
+ assert [r.rule for r in regs] == ["litellm/x.py"]
+ assert "15 -> 30" in regs[0].detail
+
+
def test_deleted_budget_file_is_a_regression():
regs = ratchet.regressions_for("b.json", {"LIT006": _spec_of(1, 0)}, None)
assert [r.rule for r in regs] == ["*"]
diff --git a/tests/test_litellm/test_check_any_discipline.py b/tests/test_litellm/test_check_any_discipline.py
index d022eebac07..40385664691 100644
--- a/tests/test_litellm/test_check_any_discipline.py
+++ b/tests/test_litellm/test_check_any_discipline.py
@@ -39,3 +39,52 @@ def test_no_line_map_means_no_line_filtering():
def test_build_error_is_always_in_scope():
assert mod._in_scope(_v(code="LIT000", line=1), {"litellm/x.py": {2}}) is True
+
+
+# --- per-file Any budget ------------------------------------------------------
+
+
+def test_slack_is_50_percent_rounded_up():
+ assert mod._slack_for(0) == 0
+ assert mod._slack_for(1) == 1 # ceil(0.5): even a 1-Any file gets a little room
+ assert mod._slack_for(3) == 2 # ceil(1.5)
+ assert mod._slack_for(20) == 10
+ assert mod._slack_for(5145) == 2573
+
+
+def test_ceiling_is_baseline_plus_slack():
+ assert mod._ceiling({"baseline": 20, "slack": 10}) == 30
+ assert mod._ceiling({}) == 0 # an absent/empty entry means a zero ceiling
+
+
+def test_lit009_counts_groups_by_file_and_ignores_other_codes():
+ violations = [
+ _v(path="litellm/a.py", line=1, code="LIT009"),
+ _v(path="litellm/a.py", line=2, code="LIT009"),
+ _v(path="litellm/a.py", line=3, code="LIT005"), # suppression hygiene, not an Any
+ _v(path="litellm/b.py", line=1, code="LIT009"),
+ _v(path="litellm/c.py", line=0, code="LIT000"), # build error, not an Any
+ ]
+ assert mod.lit009_counts(violations) == {"litellm/a.py": 2, "litellm/b.py": 1}
+
+
+def test_save_budget_omits_zero_count_files_and_round_trips(monkeypatch, tmp_path):
+ monkeypatch.setattr(mod, "BUDGET_PATH", tmp_path / "any-discipline-budget.json")
+ mod.save_budget({"litellm/a.py": 20, "litellm/b.py": 0, "litellm/c.py": 1})
+ loaded = mod.load_budget()
+ assert loaded == {
+ "litellm/a.py": {"baseline": 20, "slack": 10},
+ "litellm/c.py": {"baseline": 1, "slack": 1},
+ }
+ assert "litellm/b.py" not in loaded # zero-Any files are never baselined
+
+
+def test_load_budget_missing_file_is_empty(monkeypatch, tmp_path):
+ monkeypatch.setattr(mod, "BUDGET_PATH", tmp_path / "nope.json")
+ assert mod.load_budget() == {}
+
+
+def test_update_budget_reports_setup_error_when_git_is_unavailable():
+ # all_litellm_py_files returns None when git can't list files; --update must
+ # surface a clean setup error (exit 2), not crash with a raw traceback.
+ assert mod.update_budget(list_files=lambda: None) == 2