There was an error while loading. Please reload this page.
1 parent 5fe364a commit 92329fbCopy full SHA for 92329fb
sentry_sdk/ai/message_utils.py
@@ -15,7 +15,7 @@ def serialize(obj, **kwargs):
15
16
# Custom limit for gen_ai message serialization - 50% of MAX_EVENT_BYTES
17
# to leave room for other event data while still being generous for messages
18
-MAX_GEN_AI_MESSAGE_BYTES = 500_000 # 500KB
+MAX_GEN_AI_MESSAGE_BYTES = 20_000 # 20KB
19
20
21
def truncate_messages_by_size(messages, max_bytes=MAX_GEN_AI_MESSAGE_BYTES):
0 commit comments