mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-05 02:41:56 +00:00
style(bedrock): apply ruff format to neutralize helper
This commit is contained in:
parent
04086be795
commit
e250e661e3
1 changed files with 1 additions and 3 deletions
|
|
@ -252,9 +252,7 @@ class AmazonConverseConfig(BaseConfig):
|
|||
# Tool results are externally controlled, so guard them wherever they
|
||||
# land in history; _convert_consecutive_user_messages_to_guarded_text
|
||||
# only covers the trailing user turn.
|
||||
content: Final = (
|
||||
[{"type": "guarded_text", "text": result_text}] if guardrail_active else result_text
|
||||
)
|
||||
content: Final = [{"type": "guarded_text", "text": result_text}] if guardrail_active else result_text
|
||||
return ChatCompletionUserMessage(role="user", content=content)
|
||||
return message
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue