@@ -1083,6 +1083,7 @@ async def test_streaming_create_message_async_next_consumption(
10831083 assert span ["data" ][SPANDATA .GEN_AI_USAGE_TOTAL_TOKENS ] == 20
10841084 assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_STREAMING ] is True
10851085 assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_ID ] == "msg_01XFDUDYJgAACzvnptvVoYEL"
1086+ assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_FINISH_REASONS ] == ["max_tokens" ]
10861087
10871088
10881089@pytest .mark .asyncio
@@ -1192,7 +1193,6 @@ async def test_streaming_create_message_async_iterator_methods(
11921193 assert span ["data" ][SPANDATA .GEN_AI_USAGE_TOTAL_TOKENS ] == 30
11931194 assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_STREAMING ] is True
11941195 assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_ID ] == "msg_01XFDUDYJgAACzvnptvVoYEL"
1195- assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_FINISH_REASONS ] == ["max_tokens" ]
11961196
11971197
11981198@pytest .mark .asyncio
@@ -1418,6 +1418,7 @@ async def test_stream_messages_async_next_consumption(
14181418 assert span ["data" ][SPANDATA .GEN_AI_USAGE_TOTAL_TOKENS ] == 20
14191419 assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_STREAMING ] is True
14201420 assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_ID ] == "msg_01XFDUDYJgAACzvnptvVoYEL"
1421+ assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_FINISH_REASONS ] == ["max_tokens" ]
14211422
14221423
14231424@pytest .mark .asyncio
@@ -1533,7 +1534,6 @@ async def test_stream_messages_async_iterator_methods(
15331534 assert span ["data" ][SPANDATA .GEN_AI_USAGE_TOTAL_TOKENS ] == 30
15341535 assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_STREAMING ] is True
15351536 assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_ID ] == "msg_01XFDUDYJgAACzvnptvVoYEL"
1536- assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_FINISH_REASONS ] == ["max_tokens" ]
15371537
15381538
15391539@pytest .mark .skipif (
0 commit comments