From 943126c5fd34e402c9cf7ccad1ed975c705692b3 Mon Sep 17 00:00:00 2001 From: Bagatur <22008038+baskaryan@users.noreply.github.com> Date: Tue, 30 Jul 2024 16:26:06 -0700 Subject: [PATCH] docs: chat model pkg links (#24845) --- docs/scripts/model_feat_table.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/scripts/model_feat_table.py b/docs/scripts/model_feat_table.py index c70e516024..7adcfbb594 100644 --- a/docs/scripts/model_feat_table.py +++ b/docs/scripts/model_feat_table.py @@ -279,7 +279,11 @@ def get_chat_model_table() -> str: for h in header[1:]: value = feats.get(h) if h == "package": - row.append(value or "langchain-community") + value = value or "langchain-community" + name = value[len("langchain-") :] + link = f"https://api.python.langchain.com/en/latest/{name}_api_reference.html" + value = f"[{value}]({link})" + row.append(value) else: if value == "partial": row.append("🟡")