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
Move provider_endpoints_support.json into litellm package
yuneng-jiangefcc856234d8
diff --git a/cookbook/misc/RELEASE_NOTES_GENERATION_INSTRUCTIONS.md b/cookbook/misc/RELEASE_NOTES_GENERATION_INSTRUCTIONS.mdindex ab2cf334459..b6665a76773 100644--- a/cookbook/misc/RELEASE_NOTES_GENERATION_INSTRUCTIONS.md+++ b/cookbook/misc/RELEASE_NOTES_GENERATION_INSTRUCTIONS.md@@ -404,7 +404,7 @@ This release has a known issue...- **New Providers** - Provider name, supported endpoints, description- **New LLM API Endpoints** (optional) - Endpoint, method, description, documentation link- Only include major new provider integrations, not minor provider updates-- **IMPORTANT**: When adding new providers, also update `provider_endpoints_support.json` in the repository root (see Section 13)+- **IMPORTANT**: When adding new providers, also update `provider_endpoints_support.json` (see Section 13)### 12. Section Header Counts@@ -442,7 +442,7 @@ This release has a known issue...### 13. Update provider_endpoints_support.json-**When adding new providers or endpoints, you MUST also update `provider_endpoints_support.json` in the repository root.**+**When adding new providers or endpoints, you MUST also update `litellm/proxy/public_endpoints/provider_endpoints_support.json`.**This file tracks which endpoints are supported by each LiteLLM provider and is used to generate documentation.diff --git a/provider_endpoints_support.json b/litellm/proxy/public_endpoints/provider_endpoints_support.jsonsimilarity index 100%rename from provider_endpoints_support.jsonrename to litellm/proxy/public_endpoints/provider_endpoints_support.jsondiff --git a/litellm/proxy/public_endpoints/public_endpoints.py b/litellm/proxy/public_endpoints/public_endpoints.pyindex 2288d02c35f..54fc753e768 100644--- a/litellm/proxy/public_endpoints/public_endpoints.py+++ b/litellm/proxy/public_endpoints/public_endpoints.py@@ -248,9 +248,9 @@ async def get_provider_supported_endpoints() -> SupportedEndpointsResponse:return _supported_endpoints_cacheprovider_endpoints_support_path = os.path.join(- os.path.dirname(- os.path.dirname(os.path.dirname(os.path.dirname(__file__)))- ),+ os.path.dirname(os.path.dirname(os.path.dirname(__file__))),+ "proxy",+ "public_endpoints","provider_endpoints_support.json",)diff --git a/tests/code_coverage_tests/check_endpoint_coverage.py b/tests/code_coverage_tests/check_endpoint_coverage.pyindex 2d46d1ab469..25f181aa3a5 100644--- a/tests/code_coverage_tests/check_endpoint_coverage.py+++ b/tests/code_coverage_tests/check_endpoint_coverage.py@@ -99,7 +99,7 @@ def extract_endpoints_from_sidebars() -> Dict[str, str]:def load_provider_endpoints_file() -> Dict:"""Load the provider_endpoints_support.json file."""repo_root = get_repo_root()- file_path = repo_root / "provider_endpoints_support.json"+ file_path = repo_root / "litellm" / "proxy" / "public_endpoints" / "provider_endpoints_support.json"if not file_path.exists():print(diff --git a/tests/code_coverage_tests/check_provider_folders_documented.py b/tests/code_coverage_tests/check_provider_folders_documented.pyindex 60afc55331f..d5f7c7f7a07 100644--- a/tests/code_coverage_tests/check_provider_folders_documented.py+++ b/tests/code_coverage_tests/check_provider_folders_documented.py@@ -65,7 +65,7 @@ def get_llm_provider_folders() -> Set[str]:def load_provider_endpoints_file() -> Dict:"""Load the provider_endpoints_support.json file."""repo_root = get_repo_root()- file_path = repo_root / "provider_endpoints_support.json"+ file_path = repo_root / "litellm" / "proxy" / "public_endpoints" / "provider_endpoints_support.json"if not file_path.exists():print(