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 663a041 commit f66a772Copy full SHA for f66a772
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