Skip to content

Commit 31769ee

Browse files
committed
fix
1 parent aa1dbfa commit 31769ee

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

  • sentry_sdk/integrations/cohere

sentry_sdk/integrations/cohere/v1.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,9 @@ def new_chat(*args, **kwargs):
9191

9292
if streaming:
9393
return _iter_stream_events(response, span, include_pii)
94-
else:
95-
set_response_span_data(
96-
span, response, include_pii, COHERE_V1_CHAT_CONFIG["response"]
97-
)
94+
set_response_span_data(
95+
span, response, include_pii, COHERE_V1_CHAT_CONFIG["response"]
96+
)
9897
return response
9998

10099
return new_chat

0 commit comments

Comments
 (0)