File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
tests/integration_tests/agents/middleware Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,8 @@ def init_chat_model(
6868
6969 **Two main use cases:**
7070
71- 1. **Fixed model** - specify the model upfront and get a ready-to-use chat model.
72- 2. **Configurable model** - choose to specify parameters (including model name) at
71+ 1. **Fixed model** – specify the model upfront and get a ready-to-use chat model.
72+ 2. **Configurable model** – choose to specify parameters (including model name) at
7373 runtime via `config`. Makes it easy to switch between models/providers without
7474 changing your code
7575
@@ -295,7 +295,7 @@ class GetPopulation(BaseModel):
295295 # Use Sonnet 4.5
296296 ```
297297
298- """ # noqa: E501
298+ """ # noqa: E501,RUF002
299299 if not model and not configurable_fields :
300300 configurable_fields = ("model" , "model_provider" )
301301 config_prefix = config_prefix or ""
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ def _get_model(provider: str) -> Any:
1717 if provider == "anthropic" :
1818 from langchain_anthropic import ChatAnthropic
1919
20- return ChatAnthropic (model = "claude-3-5-sonnet-20241022 " )
20+ return ChatAnthropic (model = "claude-sonnet-4-5-20250929 " )
2121 if provider == "openai" :
2222 from langchain_openai import ChatOpenAI
2323
You can’t perform that action at this time.
0 commit comments