发布

  • fix(providers): register claude-opus-4-7 + [1m] tier with 1M context

    frostbyte_neo 发布于 2026-05-02 16:30:43 +00:00

    claude-opus-4-7[1m] (the model name Claude Code sends to select Anthropic's
    1M tier) was unmapped in ANTHROPIC_CONTEXT_LIMITS and unmapped in LiteLLM's
    bundled JSON, so get_context_limit fell through to _PATTERN_DEFAULTS["opus"]
    = 200K. The under-budget made IntelligentContextManager.should_apply skip
    compression on typical ~50K Claude Code sessions, surfacing as "0 savings"
    on Opus 4.7 traffic. Register both the bare and [1m]-suffixed forms at 1M
    with Opus-tier pricing.

    下载附件