mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-14 23:26:34 +00:00
x
This commit is contained in:
parent
6acd55b216
commit
c65571136f
@ -129,7 +129,6 @@ async def test_astream() -> 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]
|
||||
async for token in model.astream("hi"):
|
||||
assert isinstance(token, AIMessageChunk)
|
||||
|
Loading…
Reference in New Issue
Block a user