From 30d52a26dbded617029a0edd06fdb291f6afa6bf Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Tue, 14 Nov 2023 14:50:22 -0800 Subject: [PATCH] (fix) APIError set body=None --- litellm/exceptions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litellm/exceptions.py b/litellm/exceptions.py index 4378bd676..955fe674f 100644 --- a/litellm/exceptions.py +++ b/litellm/exceptions.py @@ -104,7 +104,8 @@ class APIError(APIError): # type: ignore self.model = model super().__init__( self.message, - request=request # type: ignore + request=request, # type: ignore, + body=None, ) # raised if an invalid request (not get, delete, put, post) is made