From d763190820228f73063dc1d0827f9e7abaacfb7c Mon Sep 17 00:00:00 2001 From: Darshit Suratwala Date: Wed, 18 Sep 2024 17:15:02 +0530 Subject: [PATCH] fix: anthropic event completion attribute --- src/langtrace_python_sdk/instrumentation/anthropic/patch.py | 2 +- src/langtrace_python_sdk/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/langtrace_python_sdk/instrumentation/anthropic/patch.py b/src/langtrace_python_sdk/instrumentation/anthropic/patch.py index 3dbe2487..a3ab5413 100644 --- a/src/langtrace_python_sdk/instrumentation/anthropic/patch.py +++ b/src/langtrace_python_sdk/instrumentation/anthropic/patch.py @@ -112,7 +112,7 @@ def set_response_attributes( if typ == "text": content = result.content[0].text set_event_completion( - span, [{"type": typ, role: role, content: content}] + span, [{"type": typ, "role": role, "content": content}] ) if ( diff --git a/src/langtrace_python_sdk/version.py b/src/langtrace_python_sdk/version.py index d77091b9..7bcbf566 100644 --- a/src/langtrace_python_sdk/version.py +++ b/src/langtrace_python_sdk/version.py @@ -1 +1 @@ -__version__ = "2.3.17" +__version__ = "2.3.18"