Skip to content

Commit

Permalink
update extended test
Browse files Browse the repository at this point in the history
  • Loading branch information
ccurme committed Nov 5, 2024
1 parent c54b676 commit 84b4ea2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions libs/langchain/tests/unit_tests/chat_models/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,6 @@ def test_configurable_with_default() -> None:
)

assert model_with_config.model == "claude-3-sonnet-20240229" # type: ignore[attr-defined]
# Anthropic defaults to using `transformers` for token counting.
with pytest.raises(ImportError):
model_with_config.get_num_tokens_from_messages([(HumanMessage("foo"))]) # type: ignore[attr-defined]

assert model_with_config.model_dump() == { # type: ignore[attr-defined]
"name": None,
Expand Down

0 comments on commit 84b4ea2

Please sign in to comment.