mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
style: black format anthropic_messages transformation.py
This commit is contained in:
parent
0acd05207b
commit
e5adafc768
1 changed files with 6 additions and 4 deletions
|
|
@ -141,8 +141,9 @@ class BaseAnthropicMessagesConfig(ABC):
|
|||
is_anthropic_invalid_thinking_signature_error,
|
||||
)
|
||||
|
||||
return e.response.status_code == 400 and is_anthropic_invalid_thinking_signature_error(
|
||||
e.response.text
|
||||
return (
|
||||
e.response.status_code == 400
|
||||
and is_anthropic_invalid_thinking_signature_error(e.response.text)
|
||||
)
|
||||
|
||||
def transform_anthropic_messages_request_on_http_error(
|
||||
|
|
@ -156,8 +157,9 @@ class BaseAnthropicMessagesConfig(ABC):
|
|||
strip_thinking_blocks_from_anthropic_messages_request_dict,
|
||||
)
|
||||
|
||||
if e.response.status_code == 400 and is_anthropic_invalid_thinking_signature_error(
|
||||
e.response.text
|
||||
if (
|
||||
e.response.status_code == 400
|
||||
and is_anthropic_invalid_thinking_signature_error(e.response.text)
|
||||
):
|
||||
strip_thinking_blocks_from_anthropic_messages_request_dict(request_data)
|
||||
return request_data
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue