[GH-ISSUE #4107] [Feature]: Add reusable user-defined generation parameters #2223

Closed
opened 2026-10-21 05:46:25 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Jul 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4107

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Advanced Parameters currently expose a fixed list of controls plus a raw Custom Parameters field. Provider-specific samplers and future parameters therefore require users to repeatedly enter raw custom data for every chat or connection. This is technical, error-prone, and does not provide the same toggle, range, tooltip, or numeric-input experience as built-in parameters such as Temperature.

Users need a reusable way to define a numeric provider parameter once and then control it consistently from Chat Settings in every mode and from a Connection's Default Chat Parameters.

Proposed solution

Add Settings → Advanced → Parameters, where users can create, edit, and remove reusable custom generation-parameter definitions.

Each definition contains:

  • Name: user-facing label, for example Min P.
  • Value: provider request key, for example min_p.
  • Minimum value: for example 0.
  • Maximum value: for example 1.
  • Tooltip (optional): explanatory text, for example “A dynamic truncation method used to filter out low-probability, low-quality tokens while balancing creativity and coherence.”

Saved definitions should automatically appear alongside built-in parameters in:

  • Chat Settings → Advanced Parameters in Conversation, Roleplay, and Game modes.
  • Connections → Default Chat Parameters.

Each generated control should match the existing built-in parameter UI: it has an enable/send toggle, a bounded numeric value control, and the configured tooltip. When enabled, its request key and numeric value are sent to the model; when disabled, it is omitted.

Above the existing parameter controls on both surfaces, add this localized informational text exactly:

Additional custom parameters can be added through the Parameters section in the Advanced Settings.

The Parameters manager should allow definitions to be removed with the standard trashcan delete action and otherwise follow the existing Settings UI patterns.

Alternatives considered

  • Continue using the raw Custom Parameters field: this remains useful as an escape hatch, but it forces repetitive manual entry and is inaccessible to many users.
  • Hard-code more sampler controls: this does not scale across providers and newly introduced backend parameters.
  • Add definitions only at Connection level: this would not provide reusable, centrally managed controls across chats and connections.

Additional context

Related closed requests #164 and #2316 established the need for additional/custom parameters, but neither provides a reusable user-managed parameter-definition system.

Acceptance criteria:

  • Settings → Advanced contains a localized Parameters section with create, edit, and delete flows.
  • Definitions persist through the normal settings-storage lifecycle and remain available after restart.
  • Name and request-key fields are required; request keys are unique; minimum and maximum are finite numbers; minimum cannot exceed maximum; the tooltip is optional.
  • Reserved built-in keys and duplicate custom keys are handled explicitly so the outgoing payload cannot contain ambiguous parameter definitions.
  • Every saved definition appears in Chat Settings → Advanced Parameters for all modes and Connections → Default Chat Parameters, styled like existing built-in parameter controls.
  • The exact informational copy above is shown above the existing parameter controls on both surfaces.
  • Users can enable/disable each custom parameter independently and set a value within its configured range.
  • Numeric entry accepts decimals using either . or ,, normalizes them safely, and preserves valid zero values.
  • Enabled custom parameters are forwarded under their configured request keys through the generation pipeline to the final model/provider request, including the applicable initial, retry, regenerate, and continuation paths. Disabled parameters are not sent.
  • Removing a definition removes its generated controls and prevents stale hidden values from continuing to be sent.
  • The existing raw Custom Parameters field remains available for arbitrary values that do not fit a numeric managed definition.
  • The delete action uses the standard trashcan button treatment and confirmation behavior used elsewhere in Settings.
  • The UI is responsive, keyboard accessible, and consistent across dark/light themes.
  • All new copy uses semantic localization keys, with focused coverage for persistence, decimal-comma parsing, toggles, range validation, deletion, and final provider-request forwarding.

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 @SpicyMarinara on GitHub (Jul 25, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4107 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Advanced Parameters currently expose a fixed list of controls plus a raw Custom Parameters field. Provider-specific samplers and future parameters therefore require users to repeatedly enter raw custom data for every chat or connection. This is technical, error-prone, and does not provide the same toggle, range, tooltip, or numeric-input experience as built-in parameters such as Temperature. Users need a reusable way to define a numeric provider parameter once and then control it consistently from Chat Settings in every mode and from a Connection's Default Chat Parameters. ## Proposed solution Add **Settings → Advanced → Parameters**, where users can create, edit, and remove reusable custom generation-parameter definitions. Each definition contains: - **Name**: user-facing label, for example `Min P`. - **Value**: provider request key, for example `min_p`. - **Minimum value**: for example `0`. - **Maximum value**: for example `1`. - **Tooltip** (optional): explanatory text, for example “A dynamic truncation method used to filter out low-probability, low-quality tokens while balancing creativity and coherence.” Saved definitions should automatically appear alongside built-in parameters in: - Chat Settings → Advanced Parameters in Conversation, Roleplay, and Game modes. - Connections → Default Chat Parameters. Each generated control should match the existing built-in parameter UI: it has an enable/send toggle, a bounded numeric value control, and the configured tooltip. When enabled, its request key and numeric value are sent to the model; when disabled, it is omitted. Above the existing parameter controls on both surfaces, add this localized informational text exactly: > Additional custom parameters can be added through the Parameters section in the Advanced Settings. The Parameters manager should allow definitions to be removed with the standard trashcan delete action and otherwise follow the existing Settings UI patterns. ## Alternatives considered - Continue using the raw Custom Parameters field: this remains useful as an escape hatch, but it forces repetitive manual entry and is inaccessible to many users. - Hard-code more sampler controls: this does not scale across providers and newly introduced backend parameters. - Add definitions only at Connection level: this would not provide reusable, centrally managed controls across chats and connections. ## Additional context Related closed requests #164 and #2316 established the need for additional/custom parameters, but neither provides a reusable user-managed parameter-definition system. Acceptance criteria: - Settings → Advanced contains a localized Parameters section with create, edit, and delete flows. - Definitions persist through the normal settings-storage lifecycle and remain available after restart. - Name and request-key fields are required; request keys are unique; minimum and maximum are finite numbers; minimum cannot exceed maximum; the tooltip is optional. - Reserved built-in keys and duplicate custom keys are handled explicitly so the outgoing payload cannot contain ambiguous parameter definitions. - Every saved definition appears in Chat Settings → Advanced Parameters for all modes and Connections → Default Chat Parameters, styled like existing built-in parameter controls. - The exact informational copy above is shown above the existing parameter controls on both surfaces. - Users can enable/disable each custom parameter independently and set a value within its configured range. - Numeric entry accepts decimals using either `.` or `,`, normalizes them safely, and preserves valid zero values. - Enabled custom parameters are forwarded under their configured request keys through the generation pipeline to the final model/provider request, including the applicable initial, retry, regenerate, and continuation paths. Disabled parameters are not sent. - Removing a definition removes its generated controls and prevents stale hidden values from continuing to be sent. - The existing raw Custom Parameters field remains available for arbitrary values that do not fit a numeric managed definition. - The delete action uses the standard trashcan button treatment and confirmation behavior used elsewhere in Settings. - The UI is responsive, keyboard accessible, and consistent across dark/light themes. - All new copy uses semantic localization keys, with focused coverage for persistence, decimal-comma parsing, toggles, range validation, deletion, and final provider-request forwarding. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [x] I DID NOT read this template and provide the requested details.
Author
Owner

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

Resolved by #4108 and merged into staging in e95f5785cb.

<!-- gh-comment-id:5081017905 --> @SpicyMarinara commented on GitHub (Jul 25, 2026): Resolved by #4108 and merged into `staging` in e95f5785cbe141bf83d858f7c422da7554927fe7.
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#2223
No description provided.