Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion litellm/llms/minimax/image_generation/transformation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from collections.abc import Mapping, Sequence
from json import JSONDecodeError
from math import gcd
from types import MappingProxyType
from typing import TYPE_CHECKING, Any # noqa: TID251 # base transformation contracts type these payloads as Any
Expand Down Expand Up @@ -198,7 +199,7 @@ def _raise_for_status(self, raw_response: httpx.Response) -> None:
def _error_message_from_body(raw_response: httpx.Response) -> str:
try:
body = raw_response.json()
except Exception:
except (ValueError, JSONDecodeError):
return raw_response.text
if not isinstance(body, dict):
return raw_response.text
Expand Down
Loading