feat/claude 1m context 20250822172021#23
Conversation
…rge with user extra_headers; OpenAI type alias shim for LiteLLM
PR Reviewer Guide 🔍(Review updated until commit e948cce)Here are some key observations to aid the review process:
🔍 Manual review required Reason: Manual review required: Code Quality Issues |
…X_TOKENS entry; update docs and action inputs
64de3ad to
e948cce
Compare
User description
PR Type
Enhancement
Description
• Automatically set Anthropic beta header for 1M context
• Switch default model to
claude-sonnet-4-20250514• Enhance header merging for LiteLLM integration
• Update model token limits and configurations
Changes walkthrough 📝
__init__.py
Update model configuration to Sonnet 4pr_agent/algo/init.py
• Replace
claude-3-7-sonnet-20250219withclaude-sonnet-4-20250514• Update token limit from 200k to 1M context
• Fix trailing whitespace
in model list
litellm_ai_handler.py
Enhanced Claude integration with 1M contextpr_agent/algo/ai_handlers/litellm_ai_handler.py
• Auto-set
anthropic-betaheader for Claude 1M context• Merge user
extra_headers with existing headers
• Add error handling for header configuration
• Exclude Bedrock models
from beta header logic