File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments