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(