mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5173] [Feature]: Add Assistant Reasoning Prefill #2862
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#2862
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 @kaldigo on GitHub (Aug 17, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5173
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
Marinara supports visible Assistant Prefill text, but it cannot prefill a model's separate reasoning channel.
Providers such as Kimi K3 support continuing a partial assistant message whose hidden reasoning is supplied through
reasoning_content. Without a dedicated setting, users cannot start that reasoning continuation while keeping the visible answer prefill separate.Proposed solution
Add an Assistant Reasoning Prefill generation parameter beside the existing Assistant Prefill field.
For compatible OpenAI-style endpoints, the initial provider request should append one partial assistant message that can carry both forms of prefill:
A reasoning-only prefill should remain valid with an empty visible
content.Existing visible-only Assistant Prefill behavior should retain its current request shape and should not gain
partial: true.Both prefills should be omitted during follow-up generation passes and impersonation.
Alternatives considered
reasoning_content.Additional context
Kimi K3 documents assistant messages containing
reasoning_content, and Kimi's partial-message API documents settingpartial: trueon the final assistant message when continuing it:Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: