Skip to main content
聊天模型 是一种语言模型,它使用一系列 消息 作为输入,并返回消息作为输出 .

特色提供商

尽管所有这些LangChain类都支持所指示的高级功能,您可能需要打开特定提供者的文档来了解哪些托管模型或后端支持此功能。
{
  /* TODO: finish linking to specific section for `ChatModel` */
}
| 提供者 | [调用工具](/oss/python/langchain/tools) | [结构化输出](/oss/python/langchain/structured-output/) | JSON 模式 | 本地 | [多模态](/oss/python/langchain/messages#multimodal) | 包 |
|----------|------------|-------------------|-----------|-------|------------|---------|
| [`ChatAnthropic`](/oss/python/integrations/chat/anthropic) | ✅ | ✅ | ❌ | ❌ | ✅ | [`langchain-anthropic`](https://reference.langchain.com/python/integrations/langchain_anthropic/) |
| [`ChatOpenAI`](/oss/python/integrations/chat/openai) | ✅ | ✅ | ✅ | ❌ | ✅ | [`langchain-openai`](https://reference.langchain.com/python/integrations/langchain_openai/ChatOpenAI/) |
| [`AzureChatOpenAI`](/oss/python/integrations/chat/azure_chat_openai) | ✅ | ✅ | ✅ | ❌ | ✅ | [`langchain-openai`](https://reference.langchain.com/python/integrations/langchain_openai/AzureChatOpenAI/) |
| [`ChatVertexAI`](/oss/python/integrations/chat/google_vertex_ai_palm) | ✅ | ✅ | ❌ | ❌ | ✅ | [`langchain-google-vertexai`](https://reference.langchain.com/python/integrations/langchain_google_vertexai/) |
| [`ChatGoogleGenerativeAI`](/oss/python/integrations/chat/google_generative_ai) | ✅ | ✅ | ❌ | ❌ | ✅ | [`langchain-google-genai`](https://reference.langchain.com/python/integrations/langchain_google_genai/) |
| [`ChatGroq`](/oss/python/integrations/chat/groq) | ✅ | ✅ | ✅ | ❌ | ❌ | [`langchain-groq`](https://reference.langchain.com/python/integrations/langchain_groq/) |
| [`ChatBedrock`](/oss/python/integrations/chat/bedrock) | ✅ | ✅ | ❌ | ❌ | ❌ | [`langchain-aws`](https://reference.langchain.com/python/integrations/langchain_aws/) |
| [`ChatHuggingFace`](/oss/python/integrations/chat/huggingface) | ✅ | ✅ | ❌ | ✅ | ❌ | [`langchain-huggingface`](https://reference.langchain.com/python/integrations/langchain_huggingface/) |
| [`ChatOllama`](/oss/python/integrations/chat/ollama) | ✅ | ✅ | ✅ | ✅ | ❌ | [`langchain-ollama`](https://reference.langchain.com/python/integrations/langchain_ollama/) |
| [`ChatXAI`](/oss/python/integrations/chat/xai) | ✅ | ✅ | ❌ | ❌ | ❌ | [`langchain-xai`](https://reference.langchain.com/python/integrations/langchain_xai/) |
| [`ChatNVIDIA`](/oss/python/integrations/chat/nvidia_ai_endpoints) | ✅ | ✅ | ✅ | ✅ | ✅ | [`langchain-nvidia-ai-endpoints`](https://reference.langchain.com/python/integrations/langchain_nvidia_ai_endpoints/) |
| [`ChatCohere`](/oss/python/integrations/chat/cohere) | ✅ | ✅ | ❌ | ❌ | ❌ | [`langchain-cohere`](https://reference.langchain.com/python/integrations/langchain_cohere/) |
| [`ChatMistralAI`](/oss/python/integrations/chat/mistralai) | ✅ | ✅ | ❌ | ❌ | ❌ | [`langchain-mistralai`](https://reference.langchain.com/python/integrations/langchain_mistralai/) |
| [`ChatTogether`](/oss/python/integrations/chat/together) | ✅ | ✅ | ✅ | ❌ | ❌ | [`langchain-together`](https://reference.langchain.com/python/integrations/langchain_together/) |
| [`ChatFireworks`](/oss/python/integrations/chat/fireworks) | ✅ | ✅ | ✅ | ❌ | ❌ | [`langchain-fireworks`](https://reference.langchain.com/python/integrations/langchain_fireworks/) |
| [`ChatAI21`](/oss/python/integrations/chat/ai21) | ✅ | ✅ | ❌ | ❌ | ❌ | [`langchain-ai21`](https://python.langchain.com/api_reference/ai21/chat_models/langchain_ai21.chat_models.ChatAI21.html) |
| [`ChatLlamaCpp`](/oss/python/integrations/chat/llamacpp) | ✅ | ✅ | ❌ | ✅ | ❌ | [`langchain-community`](https://python.langchain.com/api_reference/community/chat_models/langchain_community.chat_models.llamacpp.ChatLlamaCpp.html) |
| [`ChatUpstage`](/oss/python/integrations/chat/upstage) | ✅ | ✅ | ❌ | ❌ | ❌ | [`langchain-upstage`](https://reference.langchain.com/python/integrations/langchain_upstage/) |
| [`ChatDatabricks`](/oss/python/integrations/chat/databricks) | ✅ | ✅ | ❌ | ❌ | ❌ | [`databricks-langchain`](https://api-docs.databricks.com/python/databricks-ai-bridge/latest/databricks_langchain.html#databricks_langchain.ChatDatabricks) |
| [`ChatWatsonx`](/oss/python/integrations/chat/ibm_watsonx) | ✅ | ✅ | ✅ | ❌ | ❌ | [`langchain-ibm`](https://reference.langchain.com/python/integrations/langchain_ibm/) |
| [`ChatPerplexity`](/oss/python/integrations/chat/perplexity) | ❌ | ✅ | ✅ | ❌ | ✅ | [`langchain-perplexity`](https://reference.langchain.com/python/integrations/langchain_perplexity/) |

所有聊天模型

Abso

AI21 Labs

AI/ML API

Alibaba Cloud PAI EAS

Anthropic

AzureAIChatCompletionsModel

Azure OpenAI

Azure ML Endpoint

Baichuan Chat

Baidu Qianfan

Baseten

AWS Bedrock

Cerebras

CloudflareWorkersAI

Cohere

ContextualAI

Coze Chat

Dappier AI

Databricks

DeepInfra

DeepSeek

Eden AI

EverlyAI

Featherless AI

Fireworks

ChatFriendli

Goodfire

Google Gemini

Google Cloud Vertex AI

GPTRouter

DigitalOcean Gradient

GreenNode

Groq

ChatHuggingFace

IBM watsonx.ai

JinaChat

Kinetica

Konko

LiteLLM

Llama 2 Chat

Llama API

LlamaEdge

Llama.cpp

maritalk

MiniMax

MistralAI

MLX

ModelScope

Moonshot

Naver

Nebius

Netmind

NVIDIA AI Endpoints

ChatOCIModelDeployment

OCIGenAI

ChatOctoAI

Ollama

OpenAI

Outlines

Perplexity

Pipeshift

ChatPredictionGuard

PremAI

PromptLayer ChatOpenAI

Qwen QwQ

Qwen

Reka

RunPod Chat Model

SambaNovaCloud

SambaStudio

ChatSeekrFlow

Snowflake Cortex

SparkLLM Chat

Nebula (Symbl.ai)

Tencent Hunyuan

Together

Tongyi Qwen

Upstage

vLLM Chat

Volc Engine Maas

ChatWriter

xAI

Xinference

YandexGPT

ChatYI

Yuan2.0

ZHIPU AI

如果您想贡献一个集成,请参阅贡献集成