Skip to content

chore(examples): bump tools_runner.py to claude-sonnet-4-5-20250929#1473

Open
GopalGB wants to merge 1 commit intoanthropics:mainfrom
GopalGB:gb-fix/tools-runner-model
Open

chore(examples): bump tools_runner.py to claude-sonnet-4-5-20250929#1473
GopalGB wants to merge 1 commit intoanthropics:mainfrom
GopalGB:gb-fix/tools-runner-model

Conversation

@GopalGB
Copy link
Copy Markdown

@GopalGB GopalGB commented Apr 30, 2026

What

Bump the model in examples/tools_runner.py from claude-3-5-sonnet-latest to claude-sonnet-4-5-20250929.

Why

examples/tools_runner.py is the only example file still pointing at claude-3-5-sonnet-latest. Every sibling example uses claude-sonnet-4-5-20250929:

$ grep -h 'model=' examples/*.py | sort -u
        model="anthropic.claude-sonnet-4-5-20250929-v1:0",
        model="claude-haiku-4-5",
        model="claude-sonnet-4-5",
        model="claude-sonnet-4-5-20250929",
        model="claude-sonnet-4-6",
        model="claude-3-5-sonnet-latest",   <- the outlier

Aligning this example so copy-paste users land on a current model.

Notes

  • Per CONTRIBUTING.md, examples/ is not modified by the generator, so this edit is safe to land manually.
  • The example logic is unchanged — only the model identifier moves to the current default seen elsewhere in examples/.

How to test

$ ANTHROPIC_API_KEY=... uv run python examples/tools_runner.py

Output should match the previous behavior — the runner queries the weather tool and prints messages.

The `examples/tools_runner.py` file is the only example still pointing at
`claude-3-5-sonnet-latest`. All sibling examples (messages.py, messages_stream.py,
mcp_tool_runner.py, tools_stream.py, tools_runner_search_tool.py, thinking.py,
images.py, etc.) use `claude-sonnet-4-5-20250929`. Aligning this example so
copy-paste users land on a current model.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@GopalGB GopalGB requested a review from a team as a code owner April 30, 2026 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant