BerriAI/litellm · error · OpenAIError
error_text
Error message
error_text
What it means
Error "error_text" thrown in BerriAI/litellm.
Source
Thrown at litellm/llms/openai/image_variations/handler.py:110
status_code=200,
request=httpx.Request(method="GET", url="https://litellm.ai"), # mock request object
),
logging_obj=logging_obj,
request_data=data,
image=image,
optional_params=optional_params,
litellm_params=litellm_params,
encoding=None,
api_key=api_key,
)
except Exception as e:
status_code: Final = getattr(e, "status_code", 500)
error_headers = getattr(e, "headers", None)
error_text: Final = getattr(e, "text", str(e))
error_response: Final = getattr(e, "response", None)
if error_headers is None and error_response:
error_headers = getattr(error_response, "headers", None)
raise OpenAIError(status_code=status_code, message=error_text, headers=error_headers)
def image_variations(
self,
model_response: ImageResponse,
api_key: str,
api_base: str,
model: str | None,
image: FileTypes,
timeout: float | None,
custom_llm_provider: str,
logging_obj: LiteLLMLoggingObj,
optional_params: dict,
litellm_params: dict,
print_verbose: Callable | None = None,
logger_fn=None,
client=None,
organization: str | None = None,
headers: dict | None = None,View on GitHub (pinned to 6c2dcb801b)
Solutions
- Inspect the image variations error text.
When it happens
Trigger: Thrown at litellm/llms/openai/image_variations/handler.py:110 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/422675cd9558c46a.
Report an issue: GitHub.