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 <noreply@anthropic.com>
This commit is contained in:
yuneng-jiang 2026-02-26 15:15:16 -08:00
parent c20e49620f
commit efcc856234
5 changed files with 7 additions and 7 deletions

View File

@ -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.

View File

@ -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",
)

View File

@ -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(

View File

@ -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(