We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5ced480 + fee4553 commit 48b623dCopy full SHA for 48b623d
1 file changed
sentry_sdk/integrations/openai.py
@@ -401,12 +401,11 @@ def _set_completions_api_input_data(
401
"messages"
402
)
403
404
- if not should_send_default_pii() or not integration.include_prompts:
405
- set_data_normalized(span, SPANDATA.GEN_AI_OPERATION_NAME, "responses")
406
- _commmon_set_input_data(span, kwargs)
407
- return
408
-
409
- if messages is None:
+ if (
+ not should_send_default_pii()
+ or not integration.include_prompts
+ or messages is None
+ ):
410
set_data_normalized(span, SPANDATA.GEN_AI_OPERATION_NAME, "chat")
411
_commmon_set_input_data(span, kwargs)
412
return
0 commit comments