Skip to content

Commit b0b2331

Browse files
committed
fixed tests
1 parent e5f9884 commit b0b2331

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integrations/anthropic/test_anthropic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def test_nonstreaming_create_message(
123123
)
124124
assert (
125125
span["data"][SPANDATA.GEN_AI_RESPONSE_TEXT]
126-
== '[{"text": "Hi, I\'m Claude.", "type": "text"}]'
126+
== '[{"type": "text", "text": "Hi, I\'m Claude."}]'
127127
)
128128
else:
129129
assert SPANDATA.GEN_AI_REQUEST_MESSAGES not in span["data"]
@@ -195,7 +195,7 @@ async def test_nonstreaming_create_message_async(
195195
)
196196
assert (
197197
span["data"][SPANDATA.GEN_AI_RESPONSE_TEXT]
198-
== '[{"text": "Hi, I\'m Claude.", "type": "text"}]'
198+
== '[{"type": "text", "text": "Hi, I\'m Claude."}]'
199199
)
200200
else:
201201
assert SPANDATA.GEN_AI_REQUEST_MESSAGES not in span["data"]

0 commit comments

Comments
 (0)