# chat_models

> **Module** in `langchain_classic`

📖 [View in docs](https://reference.langchain.com/python/langchain-classic/chat_models)

**Chat Models** are a variation on language models.

While Chat Models use language models under the hood, the interface they expose
is a bit different. Rather than expose a "text in, text out" API, they expose
an interface where "chat messages" are the inputs and outputs.

## Methods

- [`is_interactive_env()`](https://reference.langchain.com/python/langchain-classic/chat_models/is_interactive_env)
- [`init_chat_model()`](https://reference.langchain.com/python/langchain-classic/chat_models/init_chat_model)

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/29134dc82dcb71fa693e57231bcc10f78a1b0c2b/libs/langchain/langchain_classic/chat_models/__init__.py)