# ChatGLM

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/llms/chatglm/ChatGLM)

ChatGLM LLM service.

## Signature

```python
ChatGLM()
```

## Description

**Example:**

.. code-block:: python

from langchain_community.llms import ChatGLM
endpoint_url = (
    "http://127.0.0.1:8000"
)
ChatGLM_llm = ChatGLM(
    endpoint_url=endpoint_url
)

## Extends

- `LLM`

## Properties

- `endpoint_url`
- `model_kwargs`
- `max_token`
- `temperature`
- `history`
- `top_p`
- `with_history`

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/llms/chatglm.py#L13)