BerriAI/litellm · error · MinimaxException
Error processing MiniMax response
Error message
Error processing MiniMax response: {e} What it means
Error "Error processing MiniMax response: {e}" thrown in BerriAI/litellm.
Solutions
- Check the wrapped error {e}; validate request parameters (voice, model, format) against the MiniMax TTS API spec.
When it happens
Trigger: Thrown at litellm/llms/minimax/text_to_speech/transformation.py:387 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18).
Data as JSON: /api/errors/f55569e395ef3f93.
Report an issue: GitHub.
Appendix: source
Thrown at litellm/llms/minimax/text_to_speech/transformation.py:387
binary_response: Final = httpx.Response(
status_code=200,
headers=clean_headers,
content=audio_bytes,
request=raw_response.request,
)
return HttpxBinaryResponseContent(binary_response)
except json.JSONDecodeError as e:
raise MinimaxException(
status_code=500,
message=f"Failed to parse MiniMax response: {e}",
headers=dict(raw_response.headers),
)
except Exception as e:
if isinstance(e, MinimaxException):
raise
raise MinimaxException(
status_code=500,
message=f"Error processing MiniMax response: {e}",
headers=dict(raw_response.headers),
)
def get_complete_url(
self,
model: str,
api_base: str | None,
litellm_params: dict,
) -> str:
"""
Construct the MiniMax endpoint URL.
"""
base_url = api_base or get_secret_str("MINIMAX_API_BASE") or self.TTS_BASE_URL
base_url = base_url.rstrip("/")
# MiniMax uses a simple endpoint pathView on GitHub (pinned to 77b7c6c40c)