• Will Chen's avatar
    Support 1M tokens for anthropic (drive-by: make aws bedrock secondary… (#1233) · 74edefcb
    Will Chen 提交于
    … provider)
        
    <!-- This is an auto-generated description by cubic. -->
    ---
    
    ## Summary by cubic
    Enables 1M-token context for Anthropic Claude 4 Sonnet and marks AWS
    Bedrock as a secondary provider. Adds the required Anthropic beta header
    and updates model metadata and pricing indicator.
    
    - **New Features**
    - Send header anthropic-beta: context-1m-2025-08-07 when using the
    Anthropic provider.
    - Update Claude 4 Sonnet configs: contextWindow to 1,000,000; add cost
    warning; increase pricing tier to 5 (applies to Anthropic and Bedrock
    model IDs).
      - Set AWS Bedrock as a secondary provider.
    
    <!-- End of auto-generated description by cubic. -->
    74edefcb
language_model_helpers.ts 17.1 KB