# GooglePalm

> **Class** in `langchain_community`

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

DEPRECATED: Use `langchain_google_genai.GoogleGenerativeAI` instead.

Google PaLM models.

## Signature

```python
GooglePalm()
```

## Extends

- `BaseLLM`
- `BaseModel`

## Properties

- `client`
- `google_api_key`
- `model_name`
- `temperature`
- `top_p`
- `top_k`
- `max_output_tokens`
- `n`
- `max_retries`
- `is_gemini`
- `lc_secrets`

## Methods

- [`is_lc_serializable()`](https://reference.langchain.com/python/langchain-community/llms/google_palm/GooglePalm/is_lc_serializable)
- [`get_lc_namespace()`](https://reference.langchain.com/python/langchain-community/llms/google_palm/GooglePalm/get_lc_namespace)
- [`validate_environment()`](https://reference.langchain.com/python/langchain-community/llms/google_palm/GooglePalm/validate_environment)
- [`get_num_tokens()`](https://reference.langchain.com/python/langchain-community/llms/google_palm/GooglePalm/get_num_tokens)

## ⚠️ Deprecated

Deprecated since version 0.0.12.

---

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