diff --git a/tests/unit/litellm_core_utils/test_exception_mapping_utils.py b/tests/unit/litellm_core_utils/test_exception_mapping_utils.py index 204b8eae4cf..a657dab300f 100644 --- a/tests/unit/litellm_core_utils/test_exception_mapping_utils.py +++ b/tests/unit/litellm_core_utils/test_exception_mapping_utils.py @@ -474,7 +474,7 @@ async def test_sglang_context_window_error_mapping( return httpx.Response( 400, request=request, - json={"error": {"message": error_message, "type": "BadRequestError", "param": None, "code": 400}}, + json={"object": "error", "message": error_message, "type": "BadRequestError", "param": None, "code": 400}, ) transport: Final = httpx.MockTransport(reject_request)