Replace deprecated model IDs with -latest aliases#82
Open
iskysun96 wants to merge 1 commit intoanthropics:masterfrom
Open
Replace deprecated model IDs with -latest aliases#82iskysun96 wants to merge 1 commit intoanthropics:masterfrom
iskysun96 wants to merge 1 commit intoanthropics:masterfrom
Conversation
The hardcoded Claude 3 model IDs (claude-3-haiku-20240307, claude-3-sonnet-20240229) are deprecated and broken. Replace them with -latest aliases (e.g., claude-haiku-4-5-latest) so the tutorials automatically use the newest model version without code changes. Changes: - Update MODEL_NAME in all 3 variants (Anthropic 1P, Bedrock/anthropic, Bedrock/boto3) - Update tool use notebooks from Sonnet 3 to claude-sonnet-4-5-latest - Update eval notebooks from Haiku 3 to claude-haiku-4-5-latest - Update markdown prose to reference "Claude Haiku (latest)" instead of "Claude 3 Haiku" - Unpin SDK versions in AmazonBedrock/requirements.txt for alias support Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
a9964bf to
8ce0af3
Compare
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
claude-3-haiku-20240307,claude-3-sonnet-20240229) with-latestaliases (claude-haiku-4-5-latest,claude-sonnet-4-5-latest) across all 3 tutorial variants (Anthropic 1P, Bedrock/anthropic, Bedrock/boto3)-latestaliases means the tutorials will automatically use the newest model version when Anthropic releases updates — no code changes neededAmazonBedrock/requirements.txtto unpin SDK versions for alias supportFiles changed (9)
Anthropic 1P/00_Tutorial_How-To.ipynb— Haiku model ID + proseAnthropic 1P/10.2_Appendix_Tool Use.ipynb— Sonnet model IDAmazonBedrock/anthropic/00_Tutorial_How-To.ipynb— Haiku model ID + proseAmazonBedrock/anthropic/10_2_Appendix_Tool_Use.ipynb— Sonnet model IDAmazonBedrock/anthropic/10_3_Appendix_Empirical_Performance_Evaluations.ipynb— Haiku model IDAmazonBedrock/boto3/00_Tutorial_How-To.ipynb— Haiku model ID + proseAmazonBedrock/boto3/10_2_Appendix_Tool_Use.ipynb— Sonnet model IDAmazonBedrock/boto3/10_3_Appendix_Empirical_Performance_Eval.ipynb— Haiku model IDAmazonBedrock/requirements.txt— Unpinned SDK versionsTest plan
00_Tutorial_How-To.ipynbfor each variant to verify model ID is acceptedget_completion("Hello, Claude!")cell to confirm end-to-end API call worksanthropic.claude-haiku-4-5-latest-v1:0) is valid in target AWS region🤖 Generated with Claude Code