Skip to content

Commit d7814b0

Browse files
committed
wip
1 parent ec237b4 commit d7814b0

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

sentry_sdk/integrations/cohere/v1.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ def new_chat(*args, **kwargs):
142142
set_data_normalized(span, SPANDATA.GEN_AI_OPERATION_NAME, "chat")
143143
if model:
144144
set_data_normalized(span, SPANDATA.GEN_AI_REQUEST_MODEL, model)
145+
set_data_normalized(span, SPANDATA.GEN_AI_RESPONSE_MODEL, model)
145146

146147
if should_send_default_pii() and integration.include_prompts:
147148
messages = []

sentry_sdk/integrations/cohere/v2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ def new_chat(*args, **kwargs):
186186
set_data_normalized(span, SPANDATA.GEN_AI_OPERATION_NAME, "chat")
187187
if model:
188188
set_data_normalized(span, SPANDATA.GEN_AI_REQUEST_MODEL, model)
189+
set_data_normalized(span, SPANDATA.GEN_AI_RESPONSE_MODEL, model)
189190

190191
if should_send_default_pii() and integration.include_prompts:
191192
messages = _extract_messages_v2(kwargs.get("messages", []))

0 commit comments

Comments
 (0)