mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-09 15:03:21 +00:00
docs: update chatmodel.with_structured_output feat in table (#23610)
This commit is contained in:
@@ -17,28 +17,24 @@ CHAT_MODEL_IGNORE = ("FakeListChatModel", "HumanInputChatModel")
|
|||||||
CHAT_MODEL_FEAT_TABLE = {
|
CHAT_MODEL_FEAT_TABLE = {
|
||||||
"ChatAnthropic": {
|
"ChatAnthropic": {
|
||||||
"tool_calling": True,
|
"tool_calling": True,
|
||||||
"structured_output": True,
|
|
||||||
"multimodal": True,
|
"multimodal": True,
|
||||||
"package": "langchain-anthropic",
|
"package": "langchain-anthropic",
|
||||||
"link": "/docs/integrations/chat/anthropic/",
|
"link": "/docs/integrations/chat/anthropic/",
|
||||||
},
|
},
|
||||||
"ChatMistralAI": {
|
"ChatMistralAI": {
|
||||||
"tool_calling": True,
|
"tool_calling": True,
|
||||||
"structured_output": True,
|
|
||||||
"json_model": True,
|
"json_model": True,
|
||||||
"package": "langchain-mistralai",
|
"package": "langchain-mistralai",
|
||||||
"link": "/docs/integrations/chat/mistralai/",
|
"link": "/docs/integrations/chat/mistralai/",
|
||||||
},
|
},
|
||||||
"ChatFireworks": {
|
"ChatFireworks": {
|
||||||
"tool_calling": True,
|
"tool_calling": True,
|
||||||
"structured_output": True,
|
|
||||||
"json_mode": True,
|
"json_mode": True,
|
||||||
"package": "langchain-fireworks",
|
"package": "langchain-fireworks",
|
||||||
"link": "/docs/integrations/chat/fireworks/",
|
"link": "/docs/integrations/chat/fireworks/",
|
||||||
},
|
},
|
||||||
"AzureChatOpenAI": {
|
"AzureChatOpenAI": {
|
||||||
"tool_calling": True,
|
"tool_calling": True,
|
||||||
"structured_output": True,
|
|
||||||
"json_mode": True,
|
"json_mode": True,
|
||||||
"multimodal": True,
|
"multimodal": True,
|
||||||
"package": "langchain-openai",
|
"package": "langchain-openai",
|
||||||
@@ -46,7 +42,6 @@ CHAT_MODEL_FEAT_TABLE = {
|
|||||||
},
|
},
|
||||||
"ChatOpenAI": {
|
"ChatOpenAI": {
|
||||||
"tool_calling": True,
|
"tool_calling": True,
|
||||||
"structured_output": True,
|
|
||||||
"json_mode": True,
|
"json_mode": True,
|
||||||
"multimodal": True,
|
"multimodal": True,
|
||||||
"package": "langchain-openai",
|
"package": "langchain-openai",
|
||||||
@@ -54,14 +49,12 @@ CHAT_MODEL_FEAT_TABLE = {
|
|||||||
},
|
},
|
||||||
"ChatTogether": {
|
"ChatTogether": {
|
||||||
"tool_calling": True,
|
"tool_calling": True,
|
||||||
"structured_output": True,
|
|
||||||
"json_mode": True,
|
"json_mode": True,
|
||||||
"package": "langchain-together",
|
"package": "langchain-together",
|
||||||
"link": "/docs/integrations/chat/together/",
|
"link": "/docs/integrations/chat/together/",
|
||||||
},
|
},
|
||||||
"ChatVertexAI": {
|
"ChatVertexAI": {
|
||||||
"tool_calling": True,
|
"tool_calling": True,
|
||||||
"structured_output": True,
|
|
||||||
"multimodal": True,
|
"multimodal": True,
|
||||||
"package": "langchain-google-vertexai",
|
"package": "langchain-google-vertexai",
|
||||||
"link": "/docs/integrations/chat/google_vertex_ai_palm/",
|
"link": "/docs/integrations/chat/google_vertex_ai_palm/",
|
||||||
@@ -74,14 +67,12 @@ CHAT_MODEL_FEAT_TABLE = {
|
|||||||
},
|
},
|
||||||
"ChatGroq": {
|
"ChatGroq": {
|
||||||
"tool_calling": True,
|
"tool_calling": True,
|
||||||
"structured_output": True,
|
|
||||||
"json_mode": True,
|
"json_mode": True,
|
||||||
"package": "langchain-groq",
|
"package": "langchain-groq",
|
||||||
"link": "/docs/integrations/chat/groq/",
|
"link": "/docs/integrations/chat/groq/",
|
||||||
},
|
},
|
||||||
"ChatCohere": {
|
"ChatCohere": {
|
||||||
"tool_calling": True,
|
"tool_calling": True,
|
||||||
"structured_output": True,
|
|
||||||
"package": "langchain-cohere",
|
"package": "langchain-cohere",
|
||||||
"link": "/docs/integrations/chat/cohere/",
|
"link": "/docs/integrations/chat/cohere/",
|
||||||
},
|
},
|
||||||
@@ -109,19 +100,20 @@ CHAT_MODEL_FEAT_TABLE = {
|
|||||||
},
|
},
|
||||||
"ChatEdenAI": {
|
"ChatEdenAI": {
|
||||||
"tool_calling": True,
|
"tool_calling": True,
|
||||||
"structured_output": True,
|
|
||||||
"package": "langchain-community",
|
"package": "langchain-community",
|
||||||
"link": "/docs/integrations/chat/edenai/",
|
"link": "/docs/integrations/chat/edenai/",
|
||||||
},
|
},
|
||||||
"ChatLlamaCpp": {
|
"ChatLlamaCpp": {
|
||||||
"tool_calling": True,
|
"tool_calling": True,
|
||||||
"structured_output": True,
|
|
||||||
"local": True,
|
"local": True,
|
||||||
"package": "langchain-community",
|
"package": "langchain-community",
|
||||||
"link": "/docs/integrations/chat/llamacpp",
|
"link": "/docs/integrations/chat/llamacpp",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for feats in CHAT_MODEL_FEAT_TABLE.values():
|
||||||
|
feats["structured_output"] = feats.get("tool_calling", False)
|
||||||
|
|
||||||
|
|
||||||
LLM_TEMPLATE = """\
|
LLM_TEMPLATE = """\
|
||||||
---
|
---
|
||||||
|
Reference in New Issue
Block a user