Skip to content

Commit 8b4b7ad

Browse files
committed
cleanup pr
1 parent 264e137 commit 8b4b7ad

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/strands/models/litellm.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ def _format_system_messages(
154154
if system_prompt and system_prompt_content is None:
155155
system_prompt_content = [{"text": system_prompt}]
156156

157-
# For LiteLLM with Bedrock, we can support cache points
158157
system_content: list[dict[str, Any]] = []
159158
for block in system_prompt_content or []:
160159
if "text" in block:
@@ -165,7 +164,7 @@ def _format_system_messages(
165164
if system_content:
166165
system_content[-1]["cache_control"] = {"type": "ephemeral"}
167166

168-
# Create single system message with content array
167+
# Create single system message with content array rather than mulitple system messages
169168
return [{"role": "system", "content": system_content}] if system_content else []
170169

171170
@override

tests/strands/agent/test_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2240,8 +2240,8 @@ def test_agent_backwards_compatibility_single_text_block():
22402240

22412241
# Should extract text for backwards compatibility
22422242
assert agent.system_prompt == text
2243-
2244-
2243+
2244+
22452245
@pytest.mark.parametrize(
22462246
"content, expected",
22472247
[

0 commit comments

Comments
 (0)