mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3774] [Feature]: Add opportunity to send sampling parameters for unlisted/custom models #2038
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#2038
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 @Aculeasis on GitHub (Jul 18, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3774
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
When using a Custom (OAI-Compatible) endpoint with a model ID that is not present in Marinara's built-in
MODEL_LISTScatalog, the engine automatically suppresses all standard sampling parameters (temperature,top_p,top_k,frequency_penalty,presence_penalty,reasoning_effort,verbosity) from the API request body — even when these parameters are explicitly enabled in the Connection's Default Chat Parameters UI.Only
max_tokensandcustomParametersare sent. Users have no way to disable this behavior through the UI without manually duplicating every parameter into theCustom ParametersJSON field.This makes the Connection-level parameter switches misleading — they appear enabled but have no effect for unlisted models.
Proposed solution
When a parameter switch is explicitly enabled by the user at the Connection or Chat level, always include that parameter in the request body, at least for Custom (OAI-Compatible) and unknown model ID. I think if the user THEMSELVES enabled the parameters and the model starts returning an error, they can just turn them off again.
Additional context
The suppression logic was introduced in
2b733250a5(PR #2601) and refined in48fd11dff1. The relevant function isshouldSuppressUnknownModelParametersinpackages/shared/src/constants/model-lists.ts.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jul 18, 2026):
Yeah, we can make it so if the user inputted Custom Parameters, they should always be sent.
@SpicyMarinara commented on GitHub (Jul 18, 2026):
Addressed in #3775. The PR is ready for review, all required CI checks are green, and CodeRabbit feedback has been applied.