{"record":{"id":"ce5dff112ac07db7","repo":"BerriAI/litellm","slug":"error-message-ce5dff","errorCode":null,"errorMessage":"{error_message}","messagePattern":"\\{error_message\\}","errorType":"http","errorClass":"BaseLLMException","httpStatus":null,"severity":"error","filePath":"litellm/llms/deepinfra/rerank/transformation.py","lineNumber":233,"sourceCode":"        import json\n\n        # Try to extract a more specific error message if possible\n        try:\n            error_data = error_message\n            if isinstance(error_message, str):\n                error_data = json.loads(error_message)\n            if isinstance(error_data, dict):\n                # Check for {\"detail\": {\"error\": \"...\"}}\n                detail: Final = error_data.get(\"detail\")\n                if isinstance(detail, dict) and \"error\" in detail:\n                    error_message = detail[\"error\"]\n                elif isinstance(detail, str):\n                    error_message = detail\n        except Exception:\n            # If parsing fails, just use the original error_message\n            pass\n\n        raise BaseLLMException(\n            status_code=status_code,\n            message=error_message,\n            headers=headers,\n        )\n","sourceCodeStart":215,"sourceCodeEnd":238,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/llms/deepinfra/rerank/transformation.py#L215-L238","documentation":"Error \"{error_message}\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/deepinfra/rerank/transformation.py:233 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the Deepinfra error message for details."],"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"}