mirror of
https://github.com/hwchase17/langchain.git
synced 2026-02-21 22:56:05 +00:00
Jacob/new docs (#20570)
Use docusaurus versioning with a callout, merged master as well @hwchase17 @baskaryan --------- Signed-off-by: Weichen Xu <weichen.xu@databricks.com> Signed-off-by: Rahul Tripathi <rauhl.psit.ec@gmail.com> Co-authored-by: Leonid Ganeline <leo.gan.57@gmail.com> Co-authored-by: Leonid Kuligin <lkuligin@yandex.ru> Co-authored-by: Averi Kitsch <akitsch@google.com> Co-authored-by: Erick Friis <erick@langchain.dev> Co-authored-by: Nuno Campos <nuno@langchain.dev> Co-authored-by: Nuno Campos <nuno@boringbits.io> Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com> Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com> Co-authored-by: Martín Gotelli Ferenaz <martingotelliferenaz@gmail.com> Co-authored-by: Fayfox <admin@fayfox.com> Co-authored-by: Eugene Yurtsev <eugene@langchain.dev> Co-authored-by: Dawson Bauer <105886620+djbauer2@users.noreply.github.com> Co-authored-by: Ravindu Somawansa <ravindu.somawansa@gmail.com> Co-authored-by: Dhruv Chawla <43818888+Dominastorm@users.noreply.github.com> Co-authored-by: ccurme <chester.curme@gmail.com> Co-authored-by: Bagatur <baskaryan@gmail.com> Co-authored-by: WeichenXu <weichen.xu@databricks.com> Co-authored-by: Benito Geordie <89472452+benitoThree@users.noreply.github.com> Co-authored-by: kartikTAI <129414343+kartikTAI@users.noreply.github.com> Co-authored-by: Kartik Sarangmath <kartik@thirdai.com> Co-authored-by: Sevin F. Varoglu <sfvaroglu@octoml.ai> Co-authored-by: MacanPN <martin.triska@gmail.com> Co-authored-by: Prashanth Rao <35005448+prrao87@users.noreply.github.com> Co-authored-by: Hyeongchan Kim <kozistr@gmail.com> Co-authored-by: sdan <git@sdan.io> Co-authored-by: Guangdong Liu <liugddx@gmail.com> Co-authored-by: Rahul Triptahi <rahul.psit.ec@gmail.com> Co-authored-by: Rahul Tripathi <rauhl.psit.ec@gmail.com> Co-authored-by: pjb157 <84070455+pjb157@users.noreply.github.com> Co-authored-by: Eun Hye Kim <ehkim1440@gmail.com> Co-authored-by: kaijietti <43436010+kaijietti@users.noreply.github.com> Co-authored-by: Pengcheng Liu <pcliu.fd@gmail.com> Co-authored-by: Tomer Cagan <tomer@tomercagan.com> Co-authored-by: Christophe Bornet <cbornet@hotmail.com>
This commit is contained in:
@@ -20,13 +20,46 @@ CHAT_MODEL_FEAT_TABLE_CORRECTION = {
|
||||
"ChatMLflowAIGateway": {"_agenerate": False},
|
||||
"PromptLayerChatOpenAI": {"_stream": False, "_astream": False},
|
||||
"ChatKonko": {"_astream": False, "_agenerate": False},
|
||||
"ChatAnthropic": {"tool_calling": True, "package": "langchain-anthropic"},
|
||||
"ChatMistralAI": {"tool_calling": True, "package": "langchain-mistralai"},
|
||||
"ChatFireworks": {"tool_calling": True, "package": "langchain-fireworks"},
|
||||
"ChatOpenAI": {"tool_calling": True, "package": "langchain-openai"},
|
||||
"ChatVertexAI": {"tool_calling": True, "package": "langchain-google-vertexai"},
|
||||
"ChatGroq": {"tool_calling": "partial", "package": "langchain-groq"},
|
||||
"ChatCohere": {"tool_calling": "partial", "package": "langchain-cohere"},
|
||||
"ChatAnthropic": {
|
||||
"tool_calling": True,
|
||||
"structured_output": True,
|
||||
"package": "langchain-anthropic",
|
||||
},
|
||||
"ChatMistralAI": {
|
||||
"tool_calling": True,
|
||||
"structured_output": True,
|
||||
"package": "langchain-mistralai",
|
||||
},
|
||||
"ChatFireworks": {
|
||||
"tool_calling": True,
|
||||
"structured_output": True,
|
||||
"package": "langchain-fireworks",
|
||||
},
|
||||
"AzureChatOpenAI": {
|
||||
"tool_calling": True,
|
||||
"structured_output": True,
|
||||
"package": "langchain-openai",
|
||||
},
|
||||
"ChatOpenAI": {
|
||||
"tool_calling": True,
|
||||
"structured_output": True,
|
||||
"package": "langchain-openai",
|
||||
},
|
||||
"ChatVertexAI": {
|
||||
"tool_calling": True,
|
||||
"structured_output": True,
|
||||
"package": "langchain-google-vertexai",
|
||||
},
|
||||
"ChatGroq": {
|
||||
"tool_calling": "partial",
|
||||
"structured_output": True,
|
||||
"package": "langchain-groq",
|
||||
},
|
||||
"ChatCohere": {
|
||||
"tool_calling": "partial",
|
||||
"structured_output": True,
|
||||
"package": "langchain-cohere",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -152,6 +185,7 @@ def get_chat_model_table() -> str:
|
||||
"_stream",
|
||||
"_astream",
|
||||
"tool_calling",
|
||||
"structured_output",
|
||||
"package",
|
||||
]
|
||||
title = [
|
||||
@@ -160,7 +194,8 @@ def get_chat_model_table() -> str:
|
||||
"Async invoke",
|
||||
"Stream",
|
||||
"Async stream",
|
||||
"Tool calling",
|
||||
"[Tool calling](/docs/modules/model_io/chat/function_calling/)",
|
||||
"[Structured output](/docs/modules/model_io/chat/structured_output/)",
|
||||
"Python Package",
|
||||
]
|
||||
rows = [title, [":-"] + [":-:"] * (len(title) - 1)]
|
||||
|
||||
23
docs/scripts/resolve_versioned_links_in_markdown.py
Normal file
23
docs/scripts/resolve_versioned_links_in_markdown.py
Normal file
@@ -0,0 +1,23 @@
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
DOCS_DIR = Path(os.path.abspath(__file__)).parents[1]
|
||||
|
||||
|
||||
def update_links(doc_path, docs_link):
|
||||
for path in (DOCS_DIR / doc_path).glob('**/*'):
|
||||
if path.is_file() and path.suffix in ['.md', '.mdx']:
|
||||
with open(path, "r") as f:
|
||||
content = f.read()
|
||||
|
||||
# replace relative links
|
||||
content = re.sub("\]\(\/docs\/(?!0\.2\.x)", f"]({docs_link}", content)
|
||||
|
||||
with open(path, "w") as f:
|
||||
f.write(content)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
update_links(sys.argv[1], sys.argv[2])
|
||||
Reference in New Issue
Block a user