Skip to content

Commit c672517

Browse files
committed
fix: add comment
1 parent c2896a2 commit c672517

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/uipath/dev/models/chat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def add(
7575
if msg.content_parts is None:
7676
msg.content_parts = []
7777
else:
78+
# Sequence is immutable, so re-initialize as a list to append
7879
msg.content_parts = list(msg.content_parts)
7980
msg.content_parts.append(new_cp)
8081
existing = new_cp

0 commit comments

Comments
 (0)