style: black format anthropic_messages transformation.py

This commit is contained in:
Ishaan Jaffer 2026-04-15 18:18:41 -07:00
parent 0acd05207b
commit e5adafc768
No known key found for this signature in database

View file

@ -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