{"record":{"id":"f55569e395ef3f93","repo":"BerriAI/litellm","slug":"error-processing-minimax-response-e","errorCode":null,"errorMessage":"Error processing MiniMax response: {e}","messagePattern":"Error processing MiniMax response: (.+?)","errorType":"exception","errorClass":"MinimaxException","httpStatus":500,"severity":"error","filePath":"litellm/llms/minimax/text_to_speech/transformation.py","lineNumber":387,"sourceCode":"            binary_response: Final = httpx.Response(\n                status_code=200,\n                headers=clean_headers,\n                content=audio_bytes,\n                request=raw_response.request,\n            )\n\n            return HttpxBinaryResponseContent(binary_response)\n\n        except json.JSONDecodeError as e:\n            raise MinimaxException(\n                status_code=500,\n                message=f\"Failed to parse MiniMax response: {e}\",\n                headers=dict(raw_response.headers),\n            )\n        except Exception as e:\n            if isinstance(e, MinimaxException):\n                raise\n            raise MinimaxException(\n                status_code=500,\n                message=f\"Error processing MiniMax response: {e}\",\n                headers=dict(raw_response.headers),\n            )\n\n    def get_complete_url(\n        self,\n        model: str,\n        api_base: str | None,\n        litellm_params: dict,\n    ) -> str:\n        \"\"\"\n        Construct the MiniMax endpoint URL.\n        \"\"\"\n        base_url = api_base or get_secret_str(\"MINIMAX_API_BASE\") or self.TTS_BASE_URL\n        base_url = base_url.rstrip(\"/\")\n\n        # MiniMax uses a simple endpoint path","sourceCodeStart":369,"sourceCodeEnd":405,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/minimax/text_to_speech/transformation.py#L369-L405","documentation":"Error \"Error processing MiniMax response: {e}\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/minimax/text_to_speech/transformation.py:387 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped error {e}; validate request parameters (voice, model, format) against the MiniMax TTS API spec."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}