Skip to content

jinja, chat: add --reasoning-preserve flag#25105

Merged
ngxson merged 2 commits into
masterfrom
xsn/jinja_preseve_thinking
Jun 28, 2026
Merged

jinja, chat: add --reasoning-preserve flag#25105
ngxson merged 2 commits into
masterfrom
xsn/jinja_preseve_thinking

Conversation

@ngxson

@ngxson ngxson commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator

Overview

Supersede #25079

Add --reasoning-preserve for templates that support it

Requirements

@ngxson ngxson requested review from a team and CISC as code owners June 28, 2026 15:41
@github-actions github-actions Bot added server jinja parser Issues related to the jinja parser labels Jun 28, 2026
Comment on lines +1547 to +1549
if (supported && !enabled) {
SRV_INF("%s", "chat template supports preserving reasoning, consider enabling it via --reasoning-preserve\n");
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: I suppose it would be useful if this reflected the default state.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

all known templates have it disabled by default, so I think we are temporary ok here

@ngxson ngxson merged commit b3fed31 into master Jun 28, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

jinja parser Issues related to the jinja parser server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants