Skip to content

[v0.1.158] [Anthropic: Claude Sonnet 4]: AI_APICallError: prompt is too long: 209840 tokens › 200000 maximum #500

Closed

Description

@joegearlesss
Image

Activity

  1. changed the title [-][Anthropic: Claude Sonnet 4]: AI_APICallError: prompt is too long: 209840 tokens › 200000 maximum[/-] [+][v0.1.158] [Anthropic: Claude Sonnet 4]: AI_APICallError: prompt is too long: 209840 tokens › 200000 maximum[/+] on Jun 28, 2025
  2. joegearlesss commented on Jun 28, 2025

    @joegearlesss
    Author
    Image

    @thdxr 🥶

  3. kyeshmz commented on Jun 28, 2025

    @kyeshmz

    the only way you can do it is either /compact or make a new session. this is a non problem

  4. wienans commented on Jun 28, 2025

    @wienans
    Contributor

    But we could add this as additional info so that users know to use the compact feature

  5. stefandevo commented on Jun 28, 2025

    @stefandevo

    Had the same, figured out I needed to /compact. You could add this as a help in the app.

  6. joegearlesss commented on Jun 28, 2025

    @joegearlesss
    Author

    will try in new run, but before /compact don't go well on it

  7. adamdotdevin commented on Jun 28, 2025

    @adamdotdevin
    Member

    @thdxr shouldn't auto compact have kicked in here?

  8. thdxr commented on Jun 29, 2025

    @thdxr
    Member

    yeah i'll double check it's working right

  9. self-assigned this
    on Jun 29, 2025
  10. joegearlesss commented on Jun 29, 2025

    @joegearlesss
    Author

    If I hit it in a new version, I'll let you know

  11. joegearlesss commented on Jun 29, 2025

    @joegearlesss
    Author

    @thdxr I hit it every 30 minutes )

  12. joegearlesss commented on Jun 29, 2025

    @joegearlesss
    Author

    and /compact do not work for this case. restart and reopen session do not working for this case too

    https://opencode.ai/s/WjniS1OH

  13. joegearlesss commented on Jun 29, 2025

    @joegearlesss
    Author

    self duplication #491

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions