Skip to content

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

Merged
karpetrosyan merged 1 commit intoanthropics:nextfrom
GopalGB:gb-fix/tools-runner-model
May 7, 2026
Merged

chore(examples): bump tools_runner.py to claude-sonnet-4-5-20250929#1473
karpetrosyan merged 1 commit intoanthropics:nextfrom
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
@GopalGB
Copy link
Copy Markdown
Author

GopalGB commented May 7, 2026

Trivial example bump from claude-opus-4-1-20250805 to claude-sonnet-4-5-20250929 to match current default sonnet. CLA signed. Happy to close if you'd prefer a different model — just let me know.

Copy link
Copy Markdown
Collaborator

@karpetrosyan karpetrosyan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

@karpetrosyan karpetrosyan changed the base branch from main to next May 7, 2026 18:30
@karpetrosyan karpetrosyan merged commit 1aa8e41 into anthropics:next May 7, 2026
@stainless-app stainless-app Bot mentioned this pull request May 7, 2026
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.

2 participants