From 812be07c3baa78b48bbfcffe58f431cf4db31b5f Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 14 Nov 2024 08:49:40 -0800 Subject: [PATCH] test_bad_request_error_contains_httpx_response --- tests/local_testing/test_exceptions.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/local_testing/test_exceptions.py b/tests/local_testing/test_exceptions.py index e379fbd7e..67c36928f 100644 --- a/tests/local_testing/test_exceptions.py +++ b/tests/local_testing/test_exceptions.py @@ -1158,6 +1158,11 @@ async def test_exception_with_headers_httpx( @pytest.mark.asyncio @pytest.mark.parametrize("model", ["azure/chatgpt-v-2", "openai/gpt-3.5-turbo"]) async def test_bad_request_error_contains_httpx_response(model): + """ + Test that the BadRequestError contains the httpx response + + Relevant issue: https://github.com/BerriAI/litellm/issues/6732 + """ try: await litellm.acompletion( model=model,