Skip to content

Commit 10c0c0b

Browse files
committed
fix(anthropic): update ChatAnthropic model in tests/doc
from `'claude-3-5-sonnet-latest'` to `'claude-3-5-haiku-latest'`
1 parent 9c7d262 commit 10c0c0b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

libs/partners/anthropic/langchain_anthropic/chat_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ def get_weather(location: str) -> str:
11281128
11291129
from langchain_anthropic import ChatAnthropic
11301130
1131-
llm = ChatAnthropic(model="claude-3-5-sonnet-latest")
1131+
llm = ChatAnthropic(model="claude-3-5-haiku-latest")
11321132
11331133
tool = {"type": "web_search_20250305", "name": "web_search", "max_uses": 3}
11341134
llm_with_tools = llm.bind_tools([tool])
Binary file not shown.

libs/partners/anthropic/tests/integration_tests/test_chat_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -895,13 +895,13 @@ class color_picker(BaseModel):
895895
],
896896
),
897897
]
898-
llm = ChatAnthropic(model="claude-3-5-sonnet-latest") # type: ignore[call-arg]
898+
llm = ChatAnthropic(model="claude-3-5-haiku-latest") # type: ignore[call-arg]
899899
llm.bind_tools([color_picker]).invoke(messages)
900900

901901

902902
@pytest.mark.vcr
903903
def test_web_search() -> None:
904-
llm = ChatAnthropic(model="claude-3-5-sonnet-latest") # type: ignore[call-arg]
904+
llm = ChatAnthropic(model="claude-3-5-haiku-latest") # type: ignore[call-arg]
905905

906906
tool = {"type": "web_search_20250305", "name": "web_search", "max_uses": 1}
907907
llm_with_tools = llm.bind_tools([tool])

0 commit comments

Comments
 (0)