Skip to content

[Bug] Anthropic API Error: Prompt exceeds 200k token limit with Claude 4.5 Sonnet 1M model #12186

Description

@goxl-wtf

Bug Description
The /context doesn't work when using the sonnet 4.5 1M model:

Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"prompt is too long: 208310 tokens > 200000 maximum"},"request_id":"req_011CVQe1dLrGNMJyE1ghG1av"}

Environment Info

  • Platform: linux
  • Terminal: kitty
  • Version: 2.0.50
  • Feedback ID: b60945df-625d-4702-9842-c2ec44240f8d

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions