mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7704] [Feature]: {{reasoning}} macro for the current reasoning level #4254
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4254
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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, oroffwhen the model is not asked to think. Sinceoffalready reads as false in a truthy check:and
{{#if reasoning == "max"}}targets one level.Alternatives considered
maximum) instead of what the provider is sent: less useful, since "Maximum" maps tomax,xhighorhighdepending on the model.Additional context
A preset or chat variable already named
reasoningshould keep winning, so existing presets don't change.Template check