We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdcdf4d commit c948c14Copy full SHA for c948c14
1 file changed
sentry_sdk/ai/utils.py
@@ -742,7 +742,7 @@ def truncate_and_annotate_messages(
742
max_single_message_chars: int = MAX_SINGLE_MESSAGE_CONTENT_CHARS,
743
) -> "Optional[List[Dict[str, Any]]]":
744
client = sentry_sdk.get_client()
745
- if client.options["_experiments"].get("stream_gen_ai_spans", False):
+ if client.options.get("stream_gen_ai_spans", False):
746
return messages
747
748
if not messages:
@@ -766,7 +766,7 @@ def truncate_and_annotate_embedding_inputs(
766
max_bytes: int = MAX_GEN_AI_MESSAGE_BYTES,
767
768
769
770
771
772
0 commit comments