Skip to content

too_much_tokens error with opencommit (works fine with aicommits) #515

@kud

Description

@kud

Bug Description

Getting a too_much_tokens error when using opencommit, but the same repository works perfectly fine with aicommits.

Environment

  • opencommit version: 3.2.10
  • Node.js version: v24.6.0
  • OS: macOS Sequoia 15.5 x86_64

Expected Behavior

Should generate commit messages without token limit errors, similar to how aicommits works.

Actual Behavior

Encountering too_much_tokens error when attempting to generate commit messages.

Additional Context

  • The same codebase works without issues using aicommits
  • This suggests the issue might be related to how opencommit processes or sends context to the AI model
  • Possible token optimization needed in opencommit's implementation

Reproduction Steps

  1. Install opencommit in this repository
  2. Attempt to generate a commit message
  3. Observe the too_much_tokens error

Workaround

Currently using aicommits as an alternative, which works without token issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions