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#5713
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/2670
Author: @kolacheee
Created: 6/20/2026
Status: ✅ Merged
Merged: 6/21/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/wire-minp-parameter📝 Commits (2)
ef24e3efix(llm): wire minP sampling through to providers (#2668)9739222Merge remote-tracking branch 'origin/staging' into codex-pr-2670📊 Changes
3 files changed (+30 additions, -0 deletions)
View changed files
📝
packages/server/src/routes/generate.routes.ts(+7 -0)📝
packages/server/src/services/llm/base-provider.ts(+1 -0)📝
packages/server/src/services/llm/providers/openai.provider.ts(+22 -0)📄 Description
Linked issue
Closes #2668
Why this change
minP(Min-P sampling) is presented as a first-class generation parameter — it's in the schema, the default preset ships with it, the editor exposes a slider, and it's parsed/salvaged from stored params — but it was never attached to the outgoing request, so setting it did nothing on any provider. A user dialing in Min-P (common for local models, where it's a popular alternative to top-p/top-k) saw zero effect, with no indication their setting was ignored.What changed
minP?: numbertoChatOptions.minPthrough the generate route exactly liketopK: preset baseline → connection/chat overrides → game-mode reset → all threeChatOptionsconstruction sites.min_p, gated by the sameshouldSendTopK()check astop_k— i.e. sent only where the backend is known to accept the non-standard sampler (the bundled local model). Other backends keep the existingcustomParametersescape hatch.minP = 0means "disabled" and is omitted.Anthropic and Google have no
min_pconcept, so they ignore it (no change there).3 files, +30 / −0.
Validation
Automated (done by the agent):
pnpm checkpassed locally — full TypeScript + ESLint + build (exit0).pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
minP(e.g.0.05) in a preset or Chat → Advanced Parameters, run a generation against the bundled local model, and confirmmin_pappears in the outgoing request body (logPromptSentToModel) and influences sampling.minP = 0(default) omitsmin_pentirely.minPoff (like the other sampler resets) unless a connection/chat override sets it.min_psent — matches existingtop_kbehavior).Docs and release impact
No docs/version changes are included.
docs/GENERATION_PARAMETERS.mdalready listsminP("Disabled" by default); a follow-up could note it is wired only to local-model backends, but it isn't required here.UI evidence (if applicable)
N/A — server-only change.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.