Skip to content

Commit c948c14

Browse files
update to non-experimental option
1 parent cdcdf4d commit c948c14

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sentry_sdk/ai/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ def truncate_and_annotate_messages(
742742
max_single_message_chars: int = MAX_SINGLE_MESSAGE_CONTENT_CHARS,
743743
) -> "Optional[List[Dict[str, Any]]]":
744744
client = sentry_sdk.get_client()
745-
if client.options["_experiments"].get("stream_gen_ai_spans", False):
745+
if client.options.get("stream_gen_ai_spans", False):
746746
return messages
747747

748748
if not messages:
@@ -766,7 +766,7 @@ def truncate_and_annotate_embedding_inputs(
766766
max_bytes: int = MAX_GEN_AI_MESSAGE_BYTES,
767767
) -> "Optional[List[Dict[str, Any]]]":
768768
client = sentry_sdk.get_client()
769-
if client.options["_experiments"].get("stream_gen_ai_spans", False):
769+
if client.options.get("stream_gen_ai_spans", False):
770770
return messages
771771

772772
if not messages:

0 commit comments

Comments
 (0)