From 59dd04f7fbf11726b591766d7dcfd6508cbf7c23 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 23 May 2026 18:41:51 +0530 Subject: [PATCH] fix(examples): replace dated model ID with non-dated alias in tools.py claude-sonnet-4-5-20250929 is a dated model string that will return a 404 once Anthropic deprecates it. Replaced with the stable non-dated alias claude-sonnet-4-5 which always resolves to the latest version. Closes #1596 --- examples/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/tools.py b/examples/tools.py index bd254c460..90093622a 100644 --- a/examples/tools.py +++ b/examples/tools.py @@ -21,7 +21,7 @@ ] message = client.messages.create( - model="claude-sonnet-4-5-20250929", + model="claude-sonnet-4-5", max_tokens=1024, messages=[user_message], tools=tools, @@ -32,7 +32,7 @@ tool = next(c for c in message.content if c.type == "tool_use") response = client.messages.create( - model="claude-sonnet-4-5-20250929", + model="claude-sonnet-4-5", max_tokens=1024, messages=[ user_message,