We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 382e933 commit 179d59eCopy full SHA for 179d59e
1 file changed
sentry_sdk/integrations/openai.py
@@ -8,7 +8,6 @@
8
set_data_normalized,
9
normalize_message_roles,
10
truncate_and_annotate_messages,
11
- truncate_and_annotate_embedding_inputs,
12
)
13
from sentry_sdk.consts import SPANDATA
14
from sentry_sdk.integrations import DidNotEnable, Integration
@@ -463,9 +462,7 @@ def _set_embeddings_input_data(
463
462
):
464
normalized_messages = normalize_message_roles(messages) # type: ignore
465
scope = sentry_sdk.get_current_scope()
466
- messages_data = truncate_and_annotate_embedding_inputs(
467
- normalized_messages, span, scope
468
- )
+ messages_data = truncate_and_annotate_messages(normalized_messages, span, scope)
469
if messages_data is not None:
470
set_data_normalized(
471
span, SPANDATA.GEN_AI_EMBEDDINGS_INPUT, messages_data, unpack=False
0 commit comments