style: format xai get_error_class signatures for ruff format

This commit is contained in:
hx 2026-10-06 00:44:25 +08:00
parent e2608acffd
commit 497ecffb1a
2 changed files with 8 additions and 2 deletions

View file

@ -118,7 +118,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,

View file

@ -256,7 +256,10 @@ class XAIResponsesAPIConfig(OpenAIResponsesAPIConfig):
return f"{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,