Skip to content

Commit 9ab864e

Browse files
committed
cleanup
1 parent 4368a6b commit 9ab864e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/integrations/anthropic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def _collect_ai_data(
147147
# https://github.com/anthropics/anthropic-sdk-python/blob/9c485f6966e10ae0ea9eabb3a921d2ea8145a25b/src/anthropic/lib/streaming/_messages.py#L433-L518
148148
if event.type == "message_start":
149149
model = event.message.model or model
150-
response_id = getattr(event.message, "id", None) or response_id
150+
response_id = event.message.id
151151

152152
incoming_usage = event.message.usage
153153
usage.output_tokens = incoming_usage.output_tokens

0 commit comments

Comments
 (0)