infra: fix api docs build (#28264)

This commit is contained in:
Erick Friis 2024-11-21 10:25:52 -08:00 committed by GitHub
parent 56499cf58b
commit 69a706adff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,9 +11,7 @@ from typing import Dict, Any
def load_packages_yaml() -> Dict[str, Any]:
"""Load and parse the packages.yml file."""
with open("langchain/libs/packages.yml", "r") as f:
all_packages = yaml.safe_load(f)
return {k: v for k, v in all_packages.items() if k["repo"]}
return yaml.safe_load(f)
def get_target_dir(package_name: str) -> Path: