Skip to content

Commit f7719a3

Browse files
committed
Remove unreachable []
1 parent 412ced5 commit f7719a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

newrelic/hooks/mlmodel_openai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ def _record_completion_success(transaction, linking_metadata, completion_id, kwa
509509

510510
request_id = response_headers.get("x-request-id")
511511
organization = response_headers.get("openai-organization") or getattr(response, "organization", None)
512-
messages = kwargs.get("messages") or [{"content": kwargs.get("prompt"), "role": "user"}] or []
512+
messages = kwargs.get("messages") or [{"content": kwargs.get("prompt"), "role": "user"}]
513513
input_message_list = list(messages)
514514
full_chat_completion_summary_dict = {
515515
"id": completion_id,

0 commit comments

Comments
 (0)