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 main module header comment
Cursor Agent062b5b31fb0d
diff --git a/.evidence/main_header_repro.png b/.evidence/main_header_repro.pngnew file mode 100644index 00000000000..d71ab04d02aBinary files /dev/null and b/.evidence/main_header_repro.png differdiff --git a/litellm/main.py b/litellm/main.pyindex 0553cf9d422..66d69e9fb52 100644--- a/litellm/main.py+++ b/litellm/main.py@@ -1,3 +1,5 @@+# LiteLLM main module: public completion, embedding, streaming, and moderation entrypoints.+## +-----------------------------------------------+# | |# | Give Feedback / Get Help |diff --git a/tests/test_litellm/test_main_module_header.py b/tests/test_litellm/test_main_module_header.pynew file mode 100644index 00000000000..a16e14e8c32--- /dev/null+++ b/tests/test_litellm/test_main_module_header.py@@ -0,0 +1,13 @@+from pathlib import Path+++def test_main_py_starts_with_brief_file_description():+ repo_root = Path(__file__).resolve().parents[2]+ main_py = repo_root / "litellm" / "main.py"++ first_two_lines = main_py.read_text(encoding="utf-8").splitlines()[:2]++ assert any(+ "LiteLLM main module" in line and "entrypoints" in line+ for line in first_two_lines+ )