diff --git a/litellm/llms/xai/chat/transformation.py b/litellm/llms/xai/chat/transformation.py index 3ae42116a57..73e3244a0e0 100644 --- a/litellm/llms/xai/chat/transformation.py +++ b/litellm/llms/xai/chat/transformation.py @@ -129,7 +129,10 @@ class XAIChatConfig(OpenAIGPTConfig): ) def get_error_class( - self, error_message: str, status_code: int, headers: dict | httpx.Headers # mutable-ok: mirrors the base class signature + self, + error_message: str, + status_code: int, + headers: dict | httpx.Headers, # mutable-ok: mirrors the base class signature ) -> BaseLLMException: return super().get_error_class( error_message=error_message, diff --git a/litellm/llms/xai/responses/transformation.py b/litellm/llms/xai/responses/transformation.py index 90b332992a3..49dc7960c93 100644 --- a/litellm/llms/xai/responses/transformation.py +++ b/litellm/llms/xai/responses/transformation.py @@ -258,7 +258,10 @@ class XAIResponsesAPIConfig(OpenAIResponsesAPIConfig): return join_api_base(api_base, "responses") def get_error_class( - self, error_message: str, status_code: int, headers: dict | httpx.Headers # mutable-ok: mirrors the base class signature + self, + error_message: str, + status_code: int, + headers: dict | httpx.Headers, # mutable-ok: mirrors the base class signature ) -> BaseLLMException: return super().get_error_class( error_message=error_message,