mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7016] [Feature]: Route reasoning effort into chat_template_kwargs #3930
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#3930
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 @KeinNiemand on GitHub (Oct 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7016
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
I use
ik_llama.cpp. Marinara sendsreasoning_effortat the top level, but this backend needs it insidechat_template_kwargsfor models that support different effort levels.Proposed solution
Either:
chat_template_kwargs.reasoning_effort.Alternatives considered
I can paste this into Custom Parameters:
But I have to edit the JSON every time I change effort. I'd like to use a normal setting instead.
Additional context
Related to #4107, which added reusable numeric parameters.
Template check
@SpicyMarinara commented on GitHub (Oct 3, 2026):
Very niche use, already covered by Advanced Parameters like you said.
@KeinNiemand commented on GitHub (Oct 3, 2026):
It's not really coverd by advanced paramters reasoning effort is something I change every 5 minutes, and i can't remover a 100+ characters of text i have to retype manually to set it as a manual paramter and having notepad open at all time to paste it in is also not practical. this isn't any more niche then changing reasoning effort on API, just that nobody these days want to have full proper support for local only features anymore.
@SpicyMarinara commented on GitHub (Oct 3, 2026):
Fair enough, retyping that every few minutes isn't convenient, and I should have explained better. Here's why we won't add it:
Passing reasoning effort through
chat_template_kwargsis the old, non-standard way. llama.cpp itself replaced it with the standard OpenAIreasoning_effortfield (ggml-org/llama.cpp#26045 and ggml-org/llama.cpp#26941). The server now readsreasoning_effortfrom the request and hands it to the chat template on its own. That's exactly what Marinara already sends, so on mainline llama.cpp the Reasoning Effort setting just works, no template kwargs needed.ik_llama.cpp hasn't ported those two changes yet, which is why it only listens to
chat_template_kwargs. The proper fix is on their side, and it's a small port. An issue on ik_llama.cpp linking those PRs would help everyone who uses it with any frontend. We'd rather not add a second, non-standard path to Marinara for one fork's gap, because it would stick around long after ik_llama.cpp catches up.Until then, a quicker workaround than retyping: make one connection per effort level, all pointing at the same server, each with its own Custom Parameters (
{"chat_template_kwargs":{"reasoning_effort":"low"}},"medium","high"). Then switch between them in Chat Settings.