BerriAI/litellm · error · BaseLLMException
{error_message}
Error message
{error_message} What it means
Error "{error_message}" thrown in BerriAI/litellm.
Source
Thrown at litellm/llms/deepinfra/rerank/transformation.py:233
import json
# Try to extract a more specific error message if possible
try:
error_data = error_message
if isinstance(error_message, str):
error_data = json.loads(error_message)
if isinstance(error_data, dict):
# Check for {"detail": {"error": "..."}}
detail: Final = error_data.get("detail")
if isinstance(detail, dict) and "error" in detail:
error_message = detail["error"]
elif isinstance(detail, str):
error_message = detail
except Exception:
# If parsing fails, just use the original error_message
pass
raise BaseLLMException(
status_code=status_code,
message=error_message,
headers=headers,
)
View on GitHub (pinned to 6c2dcb801b)
Solutions
- Inspect the Deepinfra error message for details.
When it happens
Trigger: Thrown at litellm/llms/deepinfra/rerank/transformation.py:233 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/ce5dff112ac07db7.
Report an issue: GitHub.