Skip to content

Commit 768a5b7

Browse files
.
1 parent 56d4e0e commit 768a5b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry_sdk/ai/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@ def truncate_messages_by_size(
145145
):
146146
# type: (List[Dict[str, Any]], int, int) -> Tuple[List[Dict[str, Any]], int]
147147
"""
148-
Returns a truncated messages array, consisting of
148+
Returns a truncated messages list, consisting of
149149
- the last message, with its content truncated to `max_single_message_chars` characters,
150150
if the last message's size exceeds `max_bytes` bytes; otherwise,
151-
- the maximum number of messages, starting from the end of the `messages` array, whose total
151+
- the maximum number of messages, starting from the end of the `messages` list, whose total
152152
serialized size does not exceed `max_bytes` bytes.
153153
154154
In the single message case, the serialized message size may exceed `max_bytes`, because

0 commit comments

Comments
 (0)