[GH-ISSUE #3774] [Feature]: Add opportunity to send sampling parameters for unlisted/custom models #2038

Closed
opened 2026-10-21 05:44:48 +07:00 by bsakaguchi · 2 comments
Owner

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_LISTS catalog, 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_tokens and customParameters are sent. Users have no way to disable this behavior through the UI without manually duplicating every parameter into the Custom Parameters JSON 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 in 48fd11dff1. The relevant function is shouldSuppressUnknownModelParameters in packages/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:

  • I DID NOT read this template and provide the requested details.
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_LISTS` catalog, 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_tokens` and `customParameters` are sent. Users have no way to disable this behavior through the UI without manually duplicating every parameter into the `Custom Parameters` JSON 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 2b733250a526dbbed7ccfdc447f72d30e31179e6 (PR #2601) and refined in 48fd11dff159978867f762a22fd686c37fb6c316. The relevant function is `shouldSuppressUnknownModelParameters` in `packages/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: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:44:48 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jul 18, 2026):

Yeah, we can make it so if the user inputted Custom Parameters, they should always be sent.

<!-- gh-comment-id:5010730998 --> @SpicyMarinara commented on GitHub (Jul 18, 2026): Yeah, we can make it so if the user inputted Custom Parameters, they should always be sent.
Author
Owner

@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.

<!-- gh-comment-id:5010867828 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2038
No description provided.