Skip to content

Commit fff52f9

Browse files
committed
Changes following review
1 parent 6b005e0 commit fff52f9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libs/langchain_v1/langchain/chat_models/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 ""

libs/langchain_v1/tests/integration_tests/agents/middleware/test_shell_tool_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)