From b2db1c2e58c7a6544344d4031442367605782919 Mon Sep 17 00:00:00 2001 From: Lalleh Rafeei Date: Fri, 10 May 2024 12:47:43 -0700 Subject: [PATCH] Remove commented out code --- newrelic/hooks/mlmodel_openai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newrelic/hooks/mlmodel_openai.py b/newrelic/hooks/mlmodel_openai.py index 511ccce68..5bd3409af 100644 --- a/newrelic/hooks/mlmodel_openai.py +++ b/newrelic/hooks/mlmodel_openai.py @@ -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,