Skip to content

Commit 92329fb

Browse files
committed
update limit
1 parent 5fe364a commit 92329fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/ai/message_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def serialize(obj, **kwargs):
1515

1616
# Custom limit for gen_ai message serialization - 50% of MAX_EVENT_BYTES
1717
# to leave room for other event data while still being generous for messages
18-
MAX_GEN_AI_MESSAGE_BYTES = 500_000 # 500KB
18+
MAX_GEN_AI_MESSAGE_BYTES = 20_000 # 20KB
1919

2020

2121
def truncate_messages_by_size(messages, max_bytes=MAX_GEN_AI_MESSAGE_BYTES):

0 commit comments

Comments
 (0)