mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-17 04:34:25 +00:00
style: format xai get_error_class signatures for ruff format
This commit is contained in:
parent
e2608acffd
commit
497ecffb1a
2 changed files with 8 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue