From 17307df6e82376b91f99670119bec01617e6fd46 Mon Sep 17 00:00:00 2001 From: Moe Khalil Date: Fri, 30 Oct 2026 20:08:39 +0000 Subject: [PATCH] test(exceptions): use SGLang's real top-level error body in overflow regression Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- tests/unit/litellm_core_utils/test_exception_mapping_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)