From efcc856234d8661e43ed93a01158dd93ad6f3aef Mon Sep 17 00:00:00 2001 From: yuneng-jiang Date: Thu, 26 Feb 2026 15:15:16 -0800 Subject: [PATCH] Move provider_endpoints_support.json into litellm package The file was at the repo root and excluded from pip distributions. Moving it to litellm/proxy/public_endpoints/ alongside the other provider JSON files ensures it is packaged correctly. Updates all references in the endpoint handler, coverage tests, and release notes instructions. Co-Authored-By: Claude Haiku 4.5 --- cookbook/misc/RELEASE_NOTES_GENERATION_INSTRUCTIONS.md | 4 ++-- .../proxy/public_endpoints/provider_endpoints_support.json | 0 litellm/proxy/public_endpoints/public_endpoints.py | 6 +++--- tests/code_coverage_tests/check_endpoint_coverage.py | 2 +- .../check_provider_folders_documented.py | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) rename provider_endpoints_support.json => litellm/proxy/public_endpoints/provider_endpoints_support.json (100%) diff --git a/cookbook/misc/RELEASE_NOTES_GENERATION_INSTRUCTIONS.md b/cookbook/misc/RELEASE_NOTES_GENERATION_INSTRUCTIONS.md index ab2cf33445..b6665a7677 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.json similarity index 100% rename from provider_endpoints_support.json rename to litellm/proxy/public_endpoints/provider_endpoints_support.json diff --git a/litellm/proxy/public_endpoints/public_endpoints.py b/litellm/proxy/public_endpoints/public_endpoints.py index 2288d02c35..54fc753e76 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_cache provider_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.py index 2d46d1ab46..25f181aa3a 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.py index 60afc55331..d5f7c7f7a0 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(