Skip to content

Commit 3391e91

Browse files
committed
fix: formatting and linting
1 parent d40d43d commit 3391e91

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/strands/models/bedrock.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,15 +273,14 @@ def _format_bedrock_messages(self, messages: Messages) -> Messages:
273273
https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ToolResultBlock.html
274274
"""
275275
cleaned_messages = []
276-
# TODO: Replace with systematic model configuration registry (https://github.com/strands-agents/sdk-python/issues/780)
277-
is_deepseek = "deepseek" in self.config["model_id"].lower()
278276

279277
for message in messages:
280278
cleaned_content: list[ContentBlock] = []
281279

282280
for content_block in message["content"]:
283281
# DeepSeek models have issues with reasoningContent
284-
if is_deepseek and "reasoningContent" in content_block:
282+
# TODO: Replace with systematic model configuration registry (https://github.com/strands-agents/sdk-python/issues/780)
283+
if "deepseek" in self.config["model_id"].lower() and "reasoningContent" in content_block:
285284
continue
286285

287286
if "toolResult" in content_block:

0 commit comments

Comments
 (0)