Skip to content

Allow the maximum number of thinking tokens to be allowed for Claude #368

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

djr7C4
Copy link
Contributor

@djr7C4 djr7C4 commented Jun 13, 2025

By default chatgpt-shell-anthropic-thinking-budget-tokens is 32000. This exceeds
the maximum number of tokens for some models (e.g. Opus 4) and is a pain since
the maximum number of tokens differs across different anthropic models. This PR
allows a value of 'max which uses as many thinking tokens as possible.

By default chatgpt-shell-anthropic-thinking-budget-tokens is 32000. This exceeds
the maximum number of tokens for some models (e.g. Opus 4) and is a pain since
the maximum number of tokens differs across different anthropic models. This PR
allows a value of 'max which uses as many thinking tokens as possible.
Copy link
Owner

@xenodium xenodium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Sorry for the delay. Minor comment.

"The token budget allocated for Anthropic model thinking.

Needs `chatgpt-shell-anthropic-thinking-budget-tokens' set to non-nil."
:type 'integer
:type '(choice integer (const max))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use nil to mean no limit (ie. max)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, that seems fine too. I'll change it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants