[GH-ISSUE #164] [Feature]: Additional Advanced Parameters #56

Closed
opened 2026-10-20 17:24:35 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @SamNadar on GitHub (Apr 21, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/164

What problem does this solve?

The Advanced Parameters section only exposes a fixed set of sampling parameters (temperature, top_p, top_k, max_tokens, frequency/presence penalty, reasoning effort, verbosity). There's no way to pass any other parameters regardless of the provider being used.

Proposed solution

Add an "Additional Parameters" JSON field to the connection settings that gets merged into the chat completion request body.
Similar to SillyTavern's "Additional Parameters" in connection settings that works with any provider.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SamNadar on GitHub (Apr 21, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/164 ## What problem does this solve? The Advanced Parameters section only exposes a fixed set of sampling parameters (temperature, top_p, top_k, max_tokens, frequency/presence penalty, reasoning effort, verbosity). There's no way to pass any other parameters regardless of the provider being used. ## Proposed solution Add an "Additional Parameters" JSON field to the connection settings that gets merged into the chat completion request body. Similar to SillyTavern's "Additional Parameters" in connection settings that works with any provider. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:24:35 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Apr 21, 2026):

What other parameters do you want to include? Most providers don't accept any others than the oned we provided.

<!-- gh-comment-id:4289226713 --> @SpicyMarinara commented on GitHub (Apr 21, 2026): What other parameters do you want to include? Most providers don't accept any others than the oned we provided.
Author
Owner

@SamNadar commented on GitHub (Apr 21, 2026):

min_p, repetition penalty are the basic ones. Though allowing custom fields would allow testing other params for enabling thinking as the glm 5 models are not really adhering to the <think></think> tags, one of these thinking toggles seems to fix the issue in SillyTavern:

  "chat_template_kwargs": {
    "thinking": true,
    "enable_thinking": true,
    "do_sample": true,
    "clear_thinking": true
  }
}
<!-- gh-comment-id:4289365146 --> @SamNadar commented on GitHub (Apr 21, 2026): min_p, repetition penalty are the basic ones. Though allowing custom fields would allow testing other params for enabling thinking as the glm 5 models are not really adhering to the `<think></think>` tags, one of these thinking toggles seems to fix the issue in SillyTavern: ```{ "chat_template_kwargs": { "thinking": true, "enable_thinking": true, "do_sample": true, "clear_thinking": true } } ```
Author
Owner

@SpicyMarinara commented on GitHub (Apr 21, 2026):

These samplers aren't supported by chat completion endpoints; they're only supported by text completion, which ME doesn't officially support. They're all outdated and need to stop being used, anyway.

<!-- gh-comment-id:4289392824 --> @SpicyMarinara commented on GitHub (Apr 21, 2026): These samplers aren't supported by chat completion endpoints; they're only supported by text completion, which ME doesn't officially support. They're all outdated and need to stop being used, anyway.
Author
Owner

@SamNadar commented on GitHub (Apr 21, 2026):

min_p and repetition penalty too as well? Though I guess min_p isn't enabled by some providers on Openrouter. Anyways if you could trying sending enable_thinking: true as well when thinking is enabled that would be appreciated as that's what seems to work for glm 5 and 5.1 (thinking: true doesn't work just finished testing) Cheers.

<!-- gh-comment-id:4289573160 --> @SamNadar commented on GitHub (Apr 21, 2026): min_p and repetition penalty too as well? Though I guess min_p isn't enabled by some providers on Openrouter. Anyways if you could trying sending `enable_thinking: true` as well when thinking is enabled that would be appreciated as that's what seems to work for glm 5 and 5.1 (`thinking: true` doesn't work just finished testing) Cheers.
Author
Owner

@SpicyMarinara commented on GitHub (Apr 21, 2026):

Yeah, Min P and Repetition Penalty, too. Hell, even models like Gemma-4 that you can run locally are recommended to be used only with Top P and Top K, and nothing else. And we already have GLM formatting with enable_thinking, just not for GLM-5.1 yet, which I just addressed in v1.5.4.

<!-- gh-comment-id:4289699621 --> @SpicyMarinara commented on GitHub (Apr 21, 2026): Yeah, Min P and Repetition Penalty, too. Hell, even models like Gemma-4 that you can run locally are recommended to be used only with Top P and Top K, and nothing else. And we already have GLM formatting with `enable_thinking`, just not for GLM-5.1 yet, which I just addressed in v1.5.4.
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#56
No description provided.