refactor: remove references to unsupported model claude-3-sonnet-20240229 (#32281)

Addresses some (but not all) test issues brought about in #32280
This commit is contained in:
Mason Daugherty
2025-07-28 11:57:43 -04:00
committed by GitHub
parent f0b6baa0ef
commit a07d2c5016
20 changed files with 323 additions and 418 deletions

View File

@@ -196,17 +196,17 @@ def test_configurable_with_default() -> None:
model_with_config = model_with_tools.with_config(
RunnableConfig(tags=["foo"]),
configurable={"bar_model": "claude-3-sonnet-20240229"},
configurable={"bar_model": "claude-3-7-sonnet-20250219"},
)
assert model_with_config.model == "claude-3-sonnet-20240229" # type: ignore[attr-defined]
assert model_with_config.model == "claude-3-7-sonnet-20250219" # type: ignore[attr-defined]
assert model_with_config.model_dump() == { # type: ignore[attr-defined]
"name": None,
"bound": {
"name": None,
"disable_streaming": False,
"model": "claude-3-sonnet-20240229",
"model": "claude-3-7-sonnet-20250219",
"mcp_servers": None,
"max_tokens": 1024,
"temperature": None,