Skip to content

Commit

Permalink
Remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
lrafeei committed May 10, 2024
1 parent df55304 commit b2db1c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion newrelic/hooks/mlmodel_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ def _record_completion_error(transaction, linking_metadata, completion_id, kwarg
body = getattr(exc, "body", None) or {}
notice_error_attributes = {
"http.statusCode": getattr(exc, "status_code", None),
"error.message": body.get("message"), # or exc.args[0],
"error.message": body.get("message"),
"error.code": body.get("code"),
"error.param": body.get("param"),
"completion_id": completion_id,
Expand Down

0 comments on commit b2db1c2

Please sign in to comment.