This commit is contained in:
Chester Curme 2025-05-08 10:52:16 -04:00
parent 6acd55b216
commit c65571136f

View File

@ -129,7 +129,6 @@ async def test_astream() -> None:
async def test_stream_usage() -> None: async def test_stream_usage() -> None:
"""Test usage metadata can be excluded."""
model = ChatAnthropic(model_name=MODEL_NAME, stream_usage=False) # type: ignore[call-arg] model = ChatAnthropic(model_name=MODEL_NAME, stream_usage=False) # type: ignore[call-arg]
async for token in model.astream("hi"): async for token in model.astream("hi"):
assert isinstance(token, AIMessageChunk) assert isinstance(token, AIMessageChunk)