feat: add extended thinking support for AWS Bedrock, Anthropic, and Vertex AI Claude 4+ models#19
Closed
adickinson72 wants to merge 1 commit intocnoe-io:mainfrom
Closed
Conversation
cf2b1e5 to
505bf13
Compare
505bf13 to
40d09f0
Compare
769c6e2 to
662533b
Compare
…ertex AI Claude 4+ models Add environment variables for configuring extended thinking: - AWS_BEDROCK_THINKING_ENABLED, AWS_BEDROCK_THINKING_BUDGET - ANTHROPIC_THINKING_ENABLED, ANTHROPIC_THINKING_BUDGET - VERTEXAI_THINKING_ENABLED, VERTEXAI_THINKING_BUDGET Default budget: 1024 tokens (minimum), automatically clamped to max_tokens if provided. Handles parameter incompatibilities (temperature, top_p, top_k). Includes 45 comprehensive tests covering all aspects. Fixes model_kwargs clobbering bug where response_format would overwrite thinking config. Now properly merges instead of replacing, preserving all configurations. Signed-off-by: Adam Dickinson <adickinson72@gmail.com>
662533b to
21f8b14
Compare
Collaborator
Author
|
Closing this PR from fork. Reopening from main repo branch for proper CI permissions as I'm now a maintainer. |
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
Adds extended thinking support for Claude 4+ models across AWS Bedrock, Anthropic, and Vertex AI providers.
Features
AWS_BEDROCK_THINKING_ENABLED,AWS_BEDROCK_THINKING_BUDGETANTHROPIC_THINKING_ENABLED,ANTHROPIC_THINKING_BUDGETVERTEXAI_THINKING_ENABLED,VERTEXAI_THINKING_BUDGETBug Fixes
model_kwargsclobbering bug whereresponse_formatwould overwritethinkingconfigTests
✅ 45 comprehensive tests passing, covering:
Documentation
Architectural Decision
After extensive analysis (see conversation thread), we decided to:
This maintains clean separation of concerns: factory handles model configuration, agents handle runtime orchestration.
🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com