Skip to content

Commit c134286

Browse files
committed
Trim last but two messages
1 parent 8b8e29d commit c134286

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llmstack/processors/providers/promptly/web_browser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ def _process_anthropic(self) -> dict:
478478
break
479479

480480
# Trim messages by removing tool call responses with images from all but the last message
481-
for message in messages[:-1]:
481+
for message in messages[:-2]:
482482
if (
483483
message.get("role") == "user"
484484
and message.get("content")

0 commit comments

Comments
 (0)