mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-15 07:36:08 +00:00
x
This commit is contained in:
parent
50ce3bf5d9
commit
c225f1a4cb
@ -135,8 +135,6 @@ async def test_stream_usage() -> None:
|
|||||||
assert isinstance(token, AIMessageChunk)
|
assert isinstance(token, AIMessageChunk)
|
||||||
assert token.usage_metadata is None
|
assert token.usage_metadata is None
|
||||||
|
|
||||||
|
|
||||||
async def test_stream_usage_override() -> None:
|
|
||||||
# check we override with kwarg
|
# check we override with kwarg
|
||||||
model = ChatAnthropic(model_name=MODEL_NAME) # type: ignore[call-arg]
|
model = ChatAnthropic(model_name=MODEL_NAME) # type: ignore[call-arg]
|
||||||
assert model.stream_usage
|
assert model.stream_usage
|
||||||
|
Loading…
Reference in New Issue
Block a user