We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4a3fef commit 56d4e0eCopy full SHA for 56d4e0e
sentry_sdk/ai/utils.py
@@ -147,7 +147,7 @@ def truncate_messages_by_size(
147
"""
148
Returns a truncated messages array, consisting of
149
- the last message, with its content truncated to `max_single_message_chars` characters,
150
- if the last message's size exceeds `max_bytes`; otherwise,
+ 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
152
serialized size does not exceed `max_bytes` bytes.
153
0 commit comments