Skip to content

Commit 56d4e0e

Browse files
.
1 parent a4a3fef commit 56d4e0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/ai/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def truncate_messages_by_size(
147147
"""
148148
Returns a truncated messages array, consisting of
149149
- the last message, with its content truncated to `max_single_message_chars` characters,
150-
if the last message's size exceeds `max_bytes`; otherwise,
150+
if the last message's size exceeds `max_bytes` bytes; otherwise,
151151
- the maximum number of messages, starting from the end of the `messages` array, whose total
152152
serialized size does not exceed `max_bytes` bytes.
153153

0 commit comments

Comments
 (0)