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