The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
ci: measure enterprise/ coverage (#37788)
yuneng-jiang6c30b4331d2d
diff --git a/.circleci/config.yml b/.circleci/config.ymlindex 2586485e79c..a261b7c78fc 100644--- a/.circleci/config.yml+++ b/.circleci/config.yml@@ -430,7 +430,7 @@ jobs:--verbose \--command="tr ' ' '\\n' | awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \-vv \- --cov=./litellm \+ --cov=./litellm --cov=./enterprise/litellm_enterprise \--cov-report=xml \--junitxml=test-results/junit.xml \--durations=20 \@@ -504,7 +504,7 @@ jobs:--verbose \--command="tr ' ' '\\n' | awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \-vv \- --cov=./litellm \+ --cov=./litellm --cov=./enterprise/litellm_enterprise \--cov-report=xml \--junitxml=test-results/junit.xml \--durations=20 \@@ -631,7 +631,7 @@ jobs:--verbose \--command="tr ' ' '\\n' | awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \-v -x \- --cov=./litellm --cov-report=xml \+ --cov=./litellm --cov=./enterprise/litellm_enterprise --cov-report=xml \--junitxml=test-results/junit.xml \--durations=5 \-n 2"@@ -738,7 +738,7 @@ jobs:--verbose \--command="tr ' ' '\\n' | awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \-v -x \- --cov=./litellm --cov-report=xml \+ --cov=./litellm --cov=./enterprise/litellm_enterprise --cov-report=xml \--junitxml=test-results/junit.xml \--durations=5 \-n 4"@@ -865,7 +865,7 @@ jobs:--verbose \--command="tr ' ' '\\n' | awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \-vv \- --cov=./litellm --cov-report=xml \+ --cov=./litellm --cov=./enterprise/litellm_enterprise --cov-report=xml \--junitxml=test-results/junit.xml \--durations=20 \-n 4 \@@ -910,7 +910,7 @@ jobs:--verbose \--command="tr ' ' '\\n' | awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \-vv -x -s \- --cov=./litellm --cov-report=xml \+ --cov=./litellm --cov=./enterprise/litellm_enterprise --cov-report=xml \--junitxml=test-results/junit.xml \--durations=5"no_output_timeout: 15m@@ -954,7 +954,7 @@ jobs:--verbose \--command="tr ' ' '\\n' | awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \-vv \- --cov=./litellm --cov-report=xml \+ --cov=./litellm --cov=./enterprise/litellm_enterprise --cov-report=xml \--junitxml=test-results/junit.xml \--durations=5 \-n 2 \@@ -1000,7 +1000,7 @@ jobs:--verbose \--command="tr ' ' '\\n' | awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \-vv -x -s \- --cov=./litellm --cov-report=xml \+ --cov=./litellm --cov=./enterprise/litellm_enterprise --cov-report=xml \--junitxml=test-results/junit.xml \--durations=5 \--retries 3 --retry-delay 5"@@ -1091,7 +1091,7 @@ jobs:--verbose \--command="tr ' ' '\\n' | awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \-vv -x \- --cov=./litellm --cov-report=xml \+ --cov=./litellm --cov=./enterprise/litellm_enterprise --cov-report=xml \--junitxml=test-results/junit.xml \--durations=5 \-n 4"@@ -1135,7 +1135,7 @@ jobs:--verbose \--command="tr ' ' '\\n' | awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \-vv -x \- --cov=./litellm --cov-report=xml \+ --cov=./litellm --cov=./enterprise/litellm_enterprise --cov-report=xml \--junitxml=test-results/junit.xml \--durations=5 \-n 4"@@ -1213,7 +1213,7 @@ jobs:--verbose \--command="tr ' ' '\\n' | awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \-vv -x -s \- --cov=./litellm --cov-report=xml \+ --cov=./litellm --cov=./enterprise/litellm_enterprise --cov-report=xml \--junitxml=test-results/junit.xml \--durations=5 \-n 2"@@ -1257,7 +1257,7 @@ jobs:--verbose \--command="tr ' ' '\\n' | awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \-vv -x -s \- --cov=./litellm --cov-report=xml \+ --cov=./litellm --cov=./enterprise/litellm_enterprise --cov-report=xml \--junitxml=test-results/junit.xml \--durations=5 \-n 2"@@ -1302,7 +1302,7 @@ jobs:--verbose \--command="tr ' ' '\\n' | awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \-vv -x \- --cov=./litellm --cov-report=xml \+ --cov=./litellm --cov=./enterprise/litellm_enterprise --cov-report=xml \--junitxml=test-results/junit.xml \--durations=5 \-n 4"@@ -1381,7 +1381,7 @@ jobs:--verbose \--command="tr ' ' '\\n' | awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \-vv \- --cov=./litellm --cov-report=xml \+ --cov=./litellm --cov=./enterprise/litellm_enterprise --cov-report=xml \-n 4 \--junitxml=test-results/junit.xml \--durations=5 \@@ -1426,7 +1426,7 @@ jobs:--verbose \--command="tr ' ' '\\n' | awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \-vv -x -s \- --cov=./litellm --cov-report=xml \+ --cov=./litellm --cov=./enterprise/litellm_enterprise --cov-report=xml \--junitxml=test-results/junit.xml \--durations=5"no_output_timeout: 15m@@ -1479,7 +1479,7 @@ jobs:--verbose \--command="tr ' ' '\\n' | awk '/\\.py/ {print; next} {sub(/\\.[A-Z][^.]*$/, \"\"); gsub(/\\./, \"/\"); print \$0 \".py\"}' | xargs uv run --no-sync python -m pytest \-vv -x -s \- --cov=./litellm --cov-report=xml \+ --cov=./litellm --cov=./enterprise/litellm_enterprise --cov-report=xml \--junitxml=test-results/junit.xml \--durations=5 -n 2 \--reruns 2 --reruns-delay 1"diff --git a/.github/workflows/_test-unit-base.yml b/.github/workflows/_test-unit-base.ymlindex b7d185bd0b9..c4045a08ffb 100644--- a/.github/workflows/_test-unit-base.yml+++ b/.github/workflows/_test-unit-base.yml@@ -149,7 +149,7 @@ jobs:--reruns "${RERUNS}" \--reruns-delay 1 \--durations=20 \- --cov=./litellm \+ --cov=./litellm --cov=./enterprise/litellm_enterprise \--cov-report=xml:coverage.xml \--cov-config=pyproject.tomlelse@@ -161,7 +161,7 @@ jobs:--reruns-delay 1 \--dist="${DIST}" \--durations=20 \- --cov=./litellm \+ --cov=./litellm --cov=./enterprise/litellm_enterprise \--cov-report=xml:coverage.xml \--cov-config=pyproject.tomlfidiff --git a/.github/workflows/test-mcp.yml b/.github/workflows/test-mcp.ymlindex 6ea814dc2de..93ffcbe0586 100644--- a/.github/workflows/test-mcp.yml+++ b/.github/workflows/test-mcp.yml@@ -60,4 +60,4 @@ jobs:- name: Run MCP testsif: steps.changes.outputs.decision != 'skip'run: |- uv run --no-sync pytest tests/mcp_tests -x -vv -n 4 --cov=./litellm --cov-report=xml --durations=5+ uv run --no-sync pytest tests/mcp_tests -x -vv -n 4 --cov=./litellm --cov=./enterprise/litellm_enterprise --cov-report=xml --durations=5