mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
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#5721
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2763
Author: @kolacheee
Created: 6/21/2026
Status: ✅ Merged
Merged: 6/21/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/issue-2762-dry-run-minp📝 Commits (1)
f51a7e2fix(generate): forward minP through the dry-run preview path (#2762)📊 Changes
1 file changed (+5 additions, -0 deletions)
View changed files
📝
packages/server/src/routes/generate/dry-run-route.ts(+5 -0)📄 Description
Linked issue
Closes #2762
Why this change
The dry-run path (prompt preview / test generation) is meant to faithfully mirror a real send so users can tune prompts and sampling before generating. It silently dropped
minP: presets and Chat/Connection Advanced Parameters can setminP, the real generate path forwards it, but the preview path resolved every other sampler and omitted this one. On backends that acceptmin_p(the bundled local sidecar model, or OpenAI-compatible / KoboldCpp backends whereshouldSendTopK()is true), the preview's request omittedmin_pwhile a real generation of the same chat included it — so the preview diverged from reality precisely for the parameter the user was trying to preview.This is a follow-up gap from #2668 / PR #2670, which wired
minPthrough the main generation path and providers but did not update the separate dry-run route.What changed
In
packages/server/src/routes/generate/dry-run-route.ts, mirror the real route (generate.routes.ts):let minP = 0;alongside the other sampler defaults.applyParameterOverrides(if (typeof params.minP === "number") minP = params.minP;) so Connection defaults and per-chat overrides apply.minP = assembled.parameters.minP ?? 0;) next to the existingtopP/topKassignments.minP: minP || undefinedinto bothprovider.chatComplete(...)calls (streaming and non-streaming).The existing Claude no-sampling / temperature-only stripping blocks already match the real route (neither strips
minP), so they are intentionally unchanged — addingminPthere would make the preview diverge from a real send rather than match it. Net change is 5 added lines; no behavior change for backends that don't acceptmin_p(aminPof0resolves toundefinedand is omitted, exactly as on the real path).Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Automated check already run by the author:
pnpm check(clean-stale-client + impeccable:check + lint/tsc + build) completed successfully on this branch.Still needs manual verification by a human before merge:
min_p(bundled local sidecar model, or an OpenAI-compatible / KoboldCpp backend), setminP=0.1in a preset or Chat Settings → Advanced Parameters, run the prompt preview / dry-run / test for that chat, and confirm the outgoing request body now includesmin_p: 0.1.min_pvalue.minP= 0 (default): confirmmin_pis still omitted from the preview request (resolves toundefined), and that pure OpenAI/Anthropic connections are unaffected.minP; behavior should be identical between the two).Docs and release impact
This is an internal server-side parity fix; no user-facing docs, config, or version-bearing files are touched. No version bump.
UI evidence (if applicable)
Not applicable — server-side request-construction change with no UI surface.
Summary by CodeRabbit
minPsampling parameter in dry-run generation requests. The parameter can be configured through connection settings, chat parameters, or preset prompt assembly, with consistent handling in both streaming and non-streaming modes.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.