There was an error while loading. Please reload this page.
1 parent a913959 commit 463759fCopy full SHA for 463759f
1 file changed
tests/integrations/anthropic/test_anthropic.py
@@ -170,8 +170,8 @@ def test_nonstreaming_create_message(
170
span["attributes"][SPANDATA.GEN_AI_RESPONSE_TEXT] == "Hi, I'm Claude."
171
)
172
else:
173
- assert SPANDATA.GEN_AI_REQUEST_MESSAGES not in spans[1]["attributes"]
174
- assert SPANDATA.GEN_AI_RESPONSE_TEXT not in spans[1]["attributes"]
+ assert SPANDATA.GEN_AI_REQUEST_MESSAGES not in span
+ assert SPANDATA.GEN_AI_RESPONSE_TEXT not in span
175
176
assert span["attributes"][SPANDATA.GEN_AI_USAGE_INPUT_TOKENS] == 10
177
assert span["attributes"][SPANDATA.GEN_AI_USAGE_OUTPUT_TOKENS] == 20
0 commit comments