Skip to content

[Feature]: Limit thinking tokens #15418

@gohar94

Description

@gohar94

🚀 The feature, motivation and pitch

Is there plan to support an option (e.g., max_thinking_tokens) to limit the thinking tokens for reasoning models? Perhaps both a minimum and a maximum limit would be useful. This is an example of one approach to achieving this: https://simonwillison.net/2025/Jan/22/r1py/

Alternatives

No response

Additional context

No response

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Metadata

Metadata

Assignees

Labels

feature requestNew feature or requeststaleOver 90 days of inactivity

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions