BerriAI/litellm · error · AlephAlphaError

{completion_response["error"]}

Error message

{completion_response["error"]}

What it means

Error "{completion_response["error"]}" thrown in BerriAI/litellm.

Source

Thrown at litellm/llms/deprecated_providers/aleph_alpha.py:253

        headers=headers,
        data=json.dumps(data),
        stream=optional_params["stream"] if "stream" in optional_params else False,
    )
    if "stream" in optional_params and optional_params["stream"] is True:
        return response.iter_lines()
    else:
        ## LOGGING
        logging_obj.post_call(
            input=prompt,
            api_key=api_key,
            original_response=response.text,
            additional_args={"complete_input_dict": data},
        )
        print_verbose(f"raw model_response: {response.text}")
        ## RESPONSE OBJECT
        completion_response: Final = response.json()
        if "error" in completion_response:
            raise AlephAlphaError(
                message=completion_response["error"],
                status_code=response.status_code,
            )
        else:
            try:
                choices_list: Final = []
                for idx, item in enumerate(completion_response["completions"]):
                    if len(item["completion"]) > 0:
                        message_obj = Message(content=item["completion"])
                    else:
                        message_obj = Message(content=None)
                    choice_obj = Choices(
                        finish_reason=item["finish_reason"],
                        index=idx + 1,
                        message=message_obj,
                    )
                    choices_list.append(choice_obj)
                model_response.choices = choices_list

View on GitHub (pinned to 6c2dcb801b)

Solutions

  1. Inspect the Aleph Alpha error field in the completion response.

When it happens

Trigger: Thrown at litellm/llms/deprecated_providers/aleph_alpha.py:253 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of BerriAI/litellm@6c2dcb801b (2026-08-15). Data as JSON: /api/errors/acb96e3b4abb0fd0. Report an issue: GitHub.