[GH-ISSUE #7704] [Feature]: {{reasoning}} macro for the current reasoning level #4254

Closed
opened 2026-10-21 06:13:36 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @ylli-selmani on GitHub (Oct 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7704

Originally assigned to: @ylli-selmani on GitHub.

What problem does this solve?

Presets often carry a chain-of-thought section ("plan your reply in tags…"). That section is wasted, or actively harmful, when the model is already thinking natively, and it is needed when reasoning is off. Right now a preset can't tell which case it is in, so users toggle the section by hand whenever they change the reasoning level.

{{model}} already exists (SillyTavern-style) and works in {{#if}}, so model-specific sections are covered; reasoning is the missing half.

Proposed solution

A {{reasoning}} macro that resolves to the level the request is actually sent with: low, medium, high, xhigh, max, or off when the model is not asked to think. Since off already reads as false in a truthy check:

{{#if reasoning}}
Plan the reply in your thinking.
{{else}}
Write your plan inside <plan></plan> tags first.
{{/if}}

and {{#if reasoning == "max"}} targets one level.

Alternatives considered

  • A preset variable the user flips by hand: that's the current workaround and it drifts from the real setting.
  • Exposing the raw stored setting (maximum) instead of what the provider is sent: less useful, since "Maximum" maps to max, xhigh or high depending on the model.

Additional context

A preset or chat variable already named reasoning should keep winning, so existing presets don't change.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @ylli-selmani on GitHub (Oct 15, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7704 Originally assigned to: @ylli-selmani on GitHub. ## What problem does this solve? Presets often carry a chain-of-thought section ("plan your reply in <plan> tags…"). That section is wasted, or actively harmful, when the model is already thinking natively, and it is needed when reasoning is off. Right now a preset can't tell which case it is in, so users toggle the section by hand whenever they change the reasoning level. `{{model}}` already exists (SillyTavern-style) and works in `{{#if}}`, so model-specific sections are covered; reasoning is the missing half. ## Proposed solution A `{{reasoning}}` macro that resolves to the level the request is actually sent with: `low`, `medium`, `high`, `xhigh`, `max`, or `off` when the model is not asked to think. Since `off` already reads as false in a truthy check: ``` {{#if reasoning}} Plan the reply in your thinking. {{else}} Write your plan inside <plan></plan> tags first. {{/if}} ``` and `{{#if reasoning == "max"}}` targets one level. ## Alternatives considered - A preset variable the user flips by hand: that's the current workaround and it drifts from the real setting. - Exposing the raw stored setting (`maximum`) instead of what the provider is sent: less useful, since "Maximum" maps to `max`, `xhigh` or `high` depending on the model. ## Additional context A preset or chat variable already named `reasoning` should keep winning, so existing presets don't change. ## Template check - [ ] I DID NOT read this template and provide the requested details.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4254
No description provided.