diff --git a/docs/api_reference/create_api_rst.py b/docs/api_reference/create_api_rst.py index b3cff2b3f28b1..b66e1938fe399 100644 --- a/docs/api_reference/create_api_rst.py +++ b/docs/api_reference/create_api_rst.py @@ -479,11 +479,11 @@ def _package_namespace(package_name: str) -> str: Returns: modified package_name: Can be either "langchain" or "langchain_{package_name}" """ - return ( - package_name - if package_name == "langchain" - else f"langchain_{package_name.replace('-', '_')}" - ) + if package_name == "langchain": + return "langchain" + if package_name == "standard-tests": + return "langchain_tests" + return f"langchain_{package_name.replace('-', '_')}" def _package_dir(package_name: str = "langchain") -> Path: