mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-15 07:36:08 +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:
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user