def __init__(
        self,
        model: str = DEFAULT_ALEPHALPHA_MODEL,
        token: Optional[str] = None,
        representation: Optional[str] = None,
        base_url: Optional[str] = DEFAULT_ALEPHALPHA_HOST,
        hosting: Optional[str] = None,
        timeout: Optional[float] = None,
        max_retries: int = 10,
        nice: bool = False,
        verify_ssl: bool = True,
        additional_kwargs: Optional[Dict[str, Any]] = None,
    ):
        """
        A class representation for generating embeddings using the AlephAlpha API.

        Args:
            token: The token to use for the AlephAlpha API.
            model: The model to use for generating embeddings.
            base_url: The base URL of the AlephAlpha API.
            nice: Whether to use the "nice" mode for the AlephAlpha API.
            additional_kwargs: Additional kwargs for the AlephAlpha API.

        """
        additional_kwargs = additional_kwargs or {}

        super().__init__(
            model=model,
            representation=representation,
            base_url=base_url,
            token=token,
            nice=nice,
            additional_kwargs=additional_kwargs,
        )

        self.token = get_from_param_or_env("aa_token", token, "AA_TOKEN", "")

        if representation is not None and isinstance(representation, str):
            try:
                representation_enum = SemanticRepresentation[
                    representation.capitalize()
                ]
            except KeyError:
                raise ValueError(
                    f"{representation} is not a valid representation type. Available types are: {list(SemanticRepresentation.__members__.keys())}"
                )
            self.representation = representation_enum
        else:
            self.representation = representation

        self._client = None
        self._aclient = None

        A class representation for generating embeddings using the AlephAlpha API.

        Args:
            token: The token to use for the AlephAlpha API.
            model: The model to use for generating embeddings.
            base_url: The base URL of the AlephAlpha API.
            nice: Whether to use the "nice" mode for the AlephAlpha API.
            additional_kwargs: Additional kwargs for the AlephAlpha API.

        
llama-index-integrations/embeddings/llama-index-embeddings-alephalpha/llama_index/embeddings/alephalpha/base.py