Skip to content

Commit e06c943

Browse files
committed
--amend
1 parent b10287e commit e06c943

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/langtrace_python_sdk/instrumentation/anthropic/patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def set_response_attributes(
112112
if typ == "text":
113113
content = result.content[0].text
114114
set_event_completion(
115-
span, [{type: typ, role: role, content: content}]
115+
span, [{"type": typ, role: role, content: content}]
116116
)
117117

118118
if (

src/tests/anthropic/test_anthropic.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def test_anthropic(anthropic_client, exporter):
2727
"stream": False,
2828
"max_tokens": 1024,
2929
}
30+
3031
anthropic_client.messages.create(**kwargs)
3132
spans = exporter.get_finished_spans()
3233
completion_span = spans[-1]

0 commit comments

Comments
 (0)