From bd68a387233ab6269994c984c3dbba23ae7c7f27 Mon Sep 17 00:00:00 2001 From: Bagatur <22008038+baskaryan@users.noreply.github.com> Date: Thu, 27 Jun 2024 20:38:49 -0700 Subject: [PATCH] docs: update chatmodel.with_structured_output feat in table (#23610) --- docs/scripts/model_feat_table.py | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/docs/scripts/model_feat_table.py b/docs/scripts/model_feat_table.py index 1ff4ae087ac..56f04675d91 100644 --- a/docs/scripts/model_feat_table.py +++ b/docs/scripts/model_feat_table.py @@ -17,28 +17,24 @@ CHAT_MODEL_IGNORE = ("FakeListChatModel", "HumanInputChatModel") CHAT_MODEL_FEAT_TABLE = { "ChatAnthropic": { "tool_calling": True, - "structured_output": True, "multimodal": True, "package": "langchain-anthropic", "link": "/docs/integrations/chat/anthropic/", }, "ChatMistralAI": { "tool_calling": True, - "structured_output": True, "json_model": True, "package": "langchain-mistralai", "link": "/docs/integrations/chat/mistralai/", }, "ChatFireworks": { "tool_calling": True, - "structured_output": True, "json_mode": True, "package": "langchain-fireworks", "link": "/docs/integrations/chat/fireworks/", }, "AzureChatOpenAI": { "tool_calling": True, - "structured_output": True, "json_mode": True, "multimodal": True, "package": "langchain-openai", @@ -46,7 +42,6 @@ CHAT_MODEL_FEAT_TABLE = { }, "ChatOpenAI": { "tool_calling": True, - "structured_output": True, "json_mode": True, "multimodal": True, "package": "langchain-openai", @@ -54,14 +49,12 @@ CHAT_MODEL_FEAT_TABLE = { }, "ChatTogether": { "tool_calling": True, - "structured_output": True, "json_mode": True, "package": "langchain-together", "link": "/docs/integrations/chat/together/", }, "ChatVertexAI": { "tool_calling": True, - "structured_output": True, "multimodal": True, "package": "langchain-google-vertexai", "link": "/docs/integrations/chat/google_vertex_ai_palm/", @@ -74,14 +67,12 @@ CHAT_MODEL_FEAT_TABLE = { }, "ChatGroq": { "tool_calling": True, - "structured_output": True, "json_mode": True, "package": "langchain-groq", "link": "/docs/integrations/chat/groq/", }, "ChatCohere": { "tool_calling": True, - "structured_output": True, "package": "langchain-cohere", "link": "/docs/integrations/chat/cohere/", }, @@ -109,19 +100,20 @@ CHAT_MODEL_FEAT_TABLE = { }, "ChatEdenAI": { "tool_calling": True, - "structured_output": True, "package": "langchain-community", "link": "/docs/integrations/chat/edenai/", }, "ChatLlamaCpp": { "tool_calling": True, - "structured_output": True, "local": True, "package": "langchain-community", "link": "/docs/integrations/chat/llamacpp", }, } +for feats in CHAT_MODEL_FEAT_TABLE.values(): + feats["structured_output"] = feats.get("tool_calling", False) + LLM_TEMPLATE = """\ ---