fix: update deprecated models in 03_models.ipynb#112
Open
gn00295120 wants to merge 3 commits intoanthropics:masterfrom
Open
fix: update deprecated models in 03_models.ipynb#112gn00295120 wants to merge 3 commits intoanthropics:masterfrom
gn00295120 wants to merge 3 commits intoanthropics:masterfrom
Conversation
Added actual code examples for the Ruby and C# test cases mentioned in the 'Let's add in two new test cases' step. Previously, these were only shown in screenshots, making it difficult for students to follow along. Changes: - Added Ruby code example (Person class with birthday method) - Added C# code example (simple chicken count program) - Students can now copy-paste these examples into the workbench Fixes anthropics#96 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Fixed duplicate cell_type tags and added language identifiers to code blocks for better syntax highlighting in the workbench cookbook. Changes: - Removed duplicate <cell_type>markdown</cell_type> tags - Added csharp language tags to code blocks - Improves rendering and syntax highlighting Fixes formatting issues in PR anthropics#111 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Fixes anthropics#99 ## Changes ### Updated Model Versions - Replaced deprecated models with current versions: - Removed: claude-3-opus-20240229 (deprecated) - Removed: claude-3-sonnet-20240229 (deprecated) - Added: claude-3-5-sonnet-20241022 (latest) - Kept: claude-3-5-sonnet-20240620 (still available) - Kept: claude-3-haiku-20240307 (still available) ### Added Deprecation Notice - Added markdown note explaining that model versions are updated periodically - Included link to model comparison table for current versions - Helps users understand that models may become deprecated over time ## Impact - Notebook now uses currently available models - Users can run examples without errors - Clear guidance on checking for latest model versions Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR updates deprecated Claude model versions in the notebooks to ensure compatibility with current API offerings. The changes replace outdated model identifiers with newer versions and add documentation about model deprecation.
Changes:
- Updated Claude model versions from deprecated 2024-02 versions to current 2024-10 and 2024-06 versions
- Added deprecation notice with reference to official model comparison documentation
- Included expanded test case examples in workbench evaluations notebook
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| anthropic_api_fundamentals/03_models.ipynb | Updated model version strings and added deprecation notice cell |
| prompt_evaluations/02_workbench_evals/02_workbench_evals.ipynb | Reformatted markdown cell with additional Ruby and C# code examples |
Comments suppressed due to low confidence (1)
prompt_evaluations/02_workbench_evals/02_workbench_evals.ipynb:1
- The markdown cell source contains an invalid
<cell_type>markdown</cell_type>tag at the beginning and end. Jupyter notebook markdown cells should not have these XML-like tags in the source content. Remove both tags to ensure proper rendering.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Fixes #99
Updates deprecated Claude model versions in the 03_models.ipynb notebook.
Changes
Lucas Wanglucas_wang@lucas-futures.com