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
Add OSS license check to ci/cd (#8626)
Krish Dholakia4e38940694ff
diff --git a/.circleci/config.yml b/.circleci/config.ymlindex d87f677d829..06b746ba202 100644--- a/.circleci/config.yml+++ b/.circleci/config.yml@@ -1046,6 +1046,7 @@ jobs:- run: python -c "from litellm import *" || (echo '🚨 import failed, this means you introduced unprotected imports! 🚨'; exit 1)- run: ruff check ./litellm# - run: python ./tests/documentation_tests/test_general_setting_keys.py+ - run: python ./tests/code_coverage_tests/check_licenses.py- run: python ./tests/code_coverage_tests/router_code_coverage.py- run: python ./tests/code_coverage_tests/callback_manager_test.py- run: python ./tests/code_coverage_tests/recursive_detector.pydiff --git a/tests/code_coverage_tests/check_licenses.py b/tests/code_coverage_tests/check_licenses.pyindex 92ce2da771d..dc7cc7c54ac 100644--- a/tests/code_coverage_tests/check_licenses.py+++ b/tests/code_coverage_tests/check_licenses.py@@ -20,7 +20,9 @@ class PackageLicense:class LicenseChecker:- def __init__(self, config_file: Path = Path("liccheck.ini")):+ def __init__(+ self, config_file: Path = Path("./tests/code_coverage_tests/liccheck.ini")+ ):if not config_file.exists():print(f"Error: Config file {config_file} not found")sys.exit(1)@@ -238,7 +240,8 @@ class LicenseChecker:def main():- req_file = "../../requirements.txt"+ # req_file = "../../requirements.txt" ## LOCAL TESTING+ req_file = "./requirements.txt"checker = LicenseChecker()# Check requirements