Skip to content

fix(drivers-prompt): detect deprecated Claude sampling params by model version#2251

Merged
collindutter merged 1 commit into
mainfrom
fix/claude-sampling-params-deprecation
Jul 17, 2026
Merged

fix(drivers-prompt): detect deprecated Claude sampling params by model version#2251
collindutter merged 1 commit into
mainfrom
fix/claude-sampling-params-deprecation

Conversation

@collindutter

Copy link
Copy Markdown
Member

Closes #2250

@codecov

codecov Bot commented Jul 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@collindutter
collindutter requested a review from cjkindel July 15, 2026 20:12
Comment thread griptape/utils/anthropic_utils.py Outdated
# ``claude-opus-4-7`` within ``us.anthropic.claude-opus-4-7-20251101-v1:0``. Plain aliases, provider
# prefixes, geographic inference-profile IDs, ARNs, and dated variants all embed this substring, so
# it is matched anywhere in the identifier.
_CLAUDE_VERSION_PATTERN = re.compile(r"claude-([a-z]+)-(\d+)-(\d+)")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What about patterns like claude-fable-5? No minor version

@collindutter
collindutter force-pushed the fix/claude-sampling-params-deprecation branch from b47ccc9 to 31451c0 Compare July 15, 2026 22:29
@collindutter
collindutter requested a review from cjkindel July 17, 2026 16:14
@collindutter
collindutter added this pull request to the merge queue Jul 17, 2026
Merged via the queue into main with commit 93fbd84 Jul 17, 2026
17 checks passed
@collindutter
collindutter deleted the fix/claude-sampling-params-deprecation branch July 17, 2026 16:43
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.

Sampling-parameter deprecation guard is hardcoded to claude-opus-4-7, missing 4.8 and later

2 participants