# is_llm

> **Function** in `langchain_classic`

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

Check if the language model is a LLM.

## Signature

```python
is_llm(
    llm: BaseLanguageModel,
) -> bool
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `llm` | `BaseLanguageModel` | Yes | Language model to check. |

## Returns

`bool`

`True` if the language model is a BaseLLM model, `False` otherwise.

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/c59e83a1ffba63d709ea4847445845edd82085dc/libs/langchain/langchain_classic/chains/prompt_selector.py#L44)