File tree Expand file tree Collapse file tree
sentry_sdk/integrations/cohere Expand file tree Collapse file tree Original file line number Diff line number Diff 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 = []
Original file line number Diff line number Diff 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" , []))
You can’t perform that action at this time.
0 commit comments