{"record":{"id":"acb96e3b4abb0fd0","repo":"BerriAI/litellm","slug":"completion-response-error-acb96e","errorCode":null,"errorMessage":"{completion_response[\"error\"]}","messagePattern":"\\{completion_response\\[\"error\"\\]\\}","errorType":"exception","errorClass":"AlephAlphaError","httpStatus":null,"severity":"error","filePath":"litellm/llms/deprecated_providers/aleph_alpha.py","lineNumber":253,"sourceCode":"        headers=headers,\n        data=json.dumps(data),\n        stream=optional_params[\"stream\"] if \"stream\" in optional_params else False,\n    )\n    if \"stream\" in optional_params and optional_params[\"stream\"] is True:\n        return response.iter_lines()\n    else:\n        ## LOGGING\n        logging_obj.post_call(\n            input=prompt,\n            api_key=api_key,\n            original_response=response.text,\n            additional_args={\"complete_input_dict\": data},\n        )\n        print_verbose(f\"raw model_response: {response.text}\")\n        ## RESPONSE OBJECT\n        completion_response: Final = response.json()\n        if \"error\" in completion_response:\n            raise AlephAlphaError(\n                message=completion_response[\"error\"],\n                status_code=response.status_code,\n            )\n        else:\n            try:\n                choices_list: Final = []\n                for idx, item in enumerate(completion_response[\"completions\"]):\n                    if len(item[\"completion\"]) > 0:\n                        message_obj = Message(content=item[\"completion\"])\n                    else:\n                        message_obj = Message(content=None)\n                    choice_obj = Choices(\n                        finish_reason=item[\"finish_reason\"],\n                        index=idx + 1,\n                        message=message_obj,\n                    )\n                    choices_list.append(choice_obj)\n                model_response.choices = choices_list","sourceCodeStart":235,"sourceCodeEnd":271,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/llms/deprecated_providers/aleph_alpha.py#L235-L271","documentation":"Error \"{completion_response[\"error\"]}\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/deprecated_providers/aleph_alpha.py:253 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the Aleph Alpha error field in the completion response."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d","analyzedAt":"2026-08-15T07:12:03.035Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}