# AlephAlpha

> **Class** in `langchain_community`

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

Aleph Alpha large language models.

To use, you should have the ``aleph_alpha_client`` python package installed, and the
environment variable ``ALEPH_ALPHA_API_KEY`` set with your API key, or pass
it as a named parameter to the constructor.

Parameters are explained more in depth here:
https://github.com/Aleph-Alpha/aleph-alpha-client/blob/c14b7dd2b4325c7da0d6a119f6e76385800e097b/aleph_alpha_client/completion.py#L10

## Signature

```python
AlephAlpha()
```

## Description

**Example:**

.. code-block:: python

from langchain_community.llms import AlephAlpha
aleph_alpha = AlephAlpha(aleph_alpha_api_key="my-api-key")

## Extends

- `LLM`

## Properties

- `client`
- `model`
- `maximum_tokens`
- `temperature`
- `top_k`
- `top_p`
- `presence_penalty`
- `frequency_penalty`
- `repetition_penalties_include_prompt`
- `use_multiplicative_presence_penalty`
- `penalty_bias`
- `penalty_exceptions`
- `penalty_exceptions_include_stop_sequences`
- `best_of`
- `n`
- `logit_bias`
- `log_probs`
- `tokens`
- `disable_optimizations`
- `minimum_tokens`
- `echo`
- `use_multiplicative_frequency_penalty`
- `sequence_penalty`
- `sequence_penalty_min_length`
- `use_multiplicative_sequence_penalty`
- `completion_bias_inclusion`
- `completion_bias_inclusion_first_token_only`
- `completion_bias_exclusion`
- `completion_bias_exclusion_first_token_only`
- `contextual_control_threshold`
- `control_log_additive`
- `repetition_penalties_include_completion`
- `raw_completion`
- `stop_sequences`
- `aleph_alpha_api_key`
- `host`
- `hosting`
- `request_timeout_seconds`
- `total_retries`
- `nice`
- `model_config`

## Methods

- [`validate_environment()`](https://reference.langchain.com/python/langchain-community/llms/aleph_alpha/AlephAlpha/validate_environment)

---

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