Chat models
Chat models are language models that use a sequence of messages as inputs and return messages as outputs (as opposed to using plain text). These are generally newer models.
info
If you'd like to write your own chat model, see this how-to. If you'd like to contribute an integration, see Contributing integrations.
Featured Providers
info
While all these LangChain classes support the indicated advanced feature, you may have to open the provider-specific documentation to learn which hosted models or backends support the feature.
Provider | Tool calling | Structured output | JSON mode | Local | Multimodal | Package |
---|---|---|---|---|---|---|
ChatAnthropic | ✅ | ✅ | ❌ | ❌ | ✅ | langchain-anthropic |
ChatMistralAI | ✅ | ✅ | ❌ | ❌ | ❌ | langchain-mistralai |
ChatFireworks | ✅ | ✅ | ✅ | ❌ | ❌ | langchain-fireworks |
AzureChatOpenAI | ✅ | ✅ | ✅ | ❌ | ✅ | langchain-openai |
ChatOpenAI | ✅ | ✅ | ✅ | ❌ | ✅ | langchain-openai |
ChatTogether | ✅ | ✅ |