{"record":{"id":"422675cd9558c46a","repo":"BerriAI/litellm","slug":"error-text-422675","errorCode":null,"errorMessage":"error_text","messagePattern":"error_text","errorType":"exception","errorClass":"OpenAIError","httpStatus":null,"severity":"error","filePath":"litellm/llms/openai/image_variations/handler.py","lineNumber":110,"sourceCode":"                    status_code=200,\n                    request=httpx.Request(method=\"GET\", url=\"https://litellm.ai\"),  # mock request object\n                ),\n                logging_obj=logging_obj,\n                request_data=data,\n                image=image,\n                optional_params=optional_params,\n                litellm_params=litellm_params,\n                encoding=None,\n                api_key=api_key,\n            )\n        except Exception as e:\n            status_code: Final = getattr(e, \"status_code\", 500)\n            error_headers = getattr(e, \"headers\", None)\n            error_text: Final = getattr(e, \"text\", str(e))\n            error_response: Final = getattr(e, \"response\", None)\n            if error_headers is None and error_response:\n                error_headers = getattr(error_response, \"headers\", None)\n            raise OpenAIError(status_code=status_code, message=error_text, headers=error_headers)\n\n    def image_variations(\n        self,\n        model_response: ImageResponse,\n        api_key: str,\n        api_base: str,\n        model: str | None,\n        image: FileTypes,\n        timeout: float | None,\n        custom_llm_provider: str,\n        logging_obj: LiteLLMLoggingObj,\n        optional_params: dict,\n        litellm_params: dict,\n        print_verbose: Callable | None = None,\n        logger_fn=None,\n        client=None,\n        organization: str | None = None,\n        headers: dict | None = None,","sourceCodeStart":92,"sourceCodeEnd":128,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/llms/openai/image_variations/handler.py#L92-L128","documentation":"Error \"error_text\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/openai/image_variations/handler.py:110 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the image variations error text."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d","analyzedAt":"2026-08-15T07:12:03.035Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}