Skip to content

Claude Sonnet 3.7 exceeds 200k context windowΒ #1173

@jswans33

Description

@jswans33

Which version of the app are you using?

3.7.2

Which API Provider are you using?

Anthropic

Which Model are you using?

Claude 3.7 Sonnet)

What happened?

constantly exceeding rate limit without dropping context when using 3.7:

400 {"type":"error","error":{"type":"invalid_request_error","message":"input length and max_tokens exceed context limit: 141273 + 64000 > 204698, decrease input length or max_tokens and try again"}}

Tokens:
Context Window:
140.7k out of total shown 200.0k
Cache:
+117.9k→2.5m

Steps to reproduce

  1. get your context window close to 141k tokens and then it is overwith

Relevant API REQUEST output

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - Unassigned / ActionableClear and approved. Available for contributors to pick up.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions