[GH-ISSUE #3256] docs: docs/GENERATION_PARAMETERS.md is out of date - Game Mode layering is backwards and Send-toggles are undocumented #1752

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

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

Originally assigned to: @SpicyMarinara on GitHub.

docs/GENERATION_PARAMETERS.md has drifted from the shipped app. Found in a full docs-vs-code audit against v2.1.0. Each item below is independently checkable: open the doc at the noted spot and compare against the app or code. These can all land in one PR that refreshes the file.

6 items found.


1. § Defaults, layering list items 2-4 (lines 12-16), especially the Game Mode bullet (line 14)

(outdated)

The layering model is backwards for Game Mode. The doc says mode-specific defaults are injected 'ahead of connection/chat overrides' and that connection defaultParameters (item 3) and per-chat overrides (item 4) win over them. Since v2.0.0, regular game turns apply connection and chat parameters FIRST and then force temperature=1, maxTokens=16384, topP=1, topK=0, minP=0, frequencyPenalty=0, presencePenalty=0, reasoningEffort="maximum", and verbosity=null on top, deliberately clobbering user overrides on every non-Gemma game turn. The doc also implies (line 14) that user-set reasoningEffort/verbosity are honored - true only for the initial world-gen setup call, not for game turns, where both are forced. A user tuning temperature or maxTokens on a Game chat per this doc will see their settings silently ignored.

Suggested fix: Rewrite the Game Mode bullet and the precedence framing: Game Mode does not layer - on every game turn (except models with 'gemma' in the name) the engine force-overrides temperature/maxTokens/topP/topK/minP/both penalties/reasoningEffort/verbosity AFTER connection and per-chat overrides, so those overrides have no effect on game turns. Gemma models keep user samplers but still get maxTokens floored to 16384. Keep the existing world-gen-setup sentence (reasoning effort/verbosity honored there if explicitly set) but scope it clearly to the setup call only. Leave the scene-chat bullet as is.


2. entire doc; most acute in § Defaults layering (lines 9-16) and the 'leave one of temperature and topP unset (not at its default value - actually unset)' advice (line 61)

(missing)

The per-parameter Send/include toggles shipped in v2.0.3 are never mentioned. Every parameter row in the editor has a Send switch controlling whether the field is included in the request at all, and a connection's Default Chat Parameters block defaults to sending ONLY Max Output Tokens and Reasoning Effort - temperature, topP, topK, both penalties, and verbosity default to NOT sent (the strict map is persisted when the user enables custom connection defaults, and providers skip any field whose toggle is off). This contradicts the doc's claim that connection defaults 'win': on a newly configured connection the temperature/topP values shown in the editor are not sent to the provider unless the user flips each Send switch on. The chat-settings Advanced Parameters drawer displays the same strict defaults; only the setup wizard's Customize Parameters editor defaults all switches on. The doc's own 'actually unset' advice is left with no explanation of how to unset a parameter - the Send toggle is the mechanism.

Suggested fix: Add a short 'Send toggles' section: every parameter in the editor has a Send switch; a parameter whose switch is off is omitted from the request entirely regardless of its value. Document the defaults per surface - wizard Customize Parameters editors: all on; connection Default Chat Parameters and the chat-settings Advanced Parameters drawer: only Max Output Tokens and Reasoning Effort on. Update the layering section to note a connection default only 'wins' for fields whose Send switch is on, and rewrite the line-61 advice as 'turn off that parameter's Send toggle' instead of the unexplained 'actually unset'.


3. intro, line 3: 'Settings → Connections → edit a connection → Generation Parameters'

(outdated)

The connection editor has no section named 'Generation Parameters'. The section holding a connection's default generation parameters is labeled 'Default Chat Parameters', and it is an opt-in block behind a 'Use custom defaults for this connection' switch. No UI surface in the client carries the label 'Generation Parameters' at all, so the doc's primary navigation instruction points at a label that does not exist.

Suggested fix: Change the path to 'Settings → Connections → edit a connection → Default Chat Parameters' and note it is opt-in: enable 'Use custom defaults for this connection' to set values.


4. § Defaults item 4 (line 16) and § Wizard customization starting points heading text (line 39)

(outdated)

The setup-wizard toggle is labeled 'Customize Parameters', not 'Customize generation parameters', in both the chat setup wizard and the Game setup wizard. Users scanning the wizard for the doc's exact label will not find it.

Suggested fix: Use the actual label 'Customize Parameters' (bolded as a UI label) in both places.


5. § Preset baseline table, maxTokens row note (line 25): 'Game Mode world-gen in particular benefits from 10000 or higher because the structured JSON output is large'

(obsolete)

Setting maxTokens to 10000 for world-gen does nothing: the world-gen setup call floors its output budget at 16384 tokens via Math.max, so user values only matter above 16384, and regular game turns force maxTokens to exactly 16384 regardless of user settings (then clamp to the model's known max output). The tip tells users to tune a knob that has no effect at the recommended value.

Suggested fix: Replace the note: Game Mode manages its own output budget - the world-gen setup call is automatically floored at 16384 tokens (your value only matters above that), and regular game turns force 16384 outright, so tuning maxTokens for Game Mode is generally unnecessary.


6. § Per-backend gotchas, second bullet (line 61): 'for most Claude models (Sonnet, Haiku, older Opus), the engine sends both temperature and topP when both are set, and Claude's API rejects this combination'

(outdated)

For Sonnet and Opus 4.5/4.6 the engine auto-strips topP (temperature-only sampling) on every route - including OpenRouter and OpenAI-compatible endpoints - so the described 400 cannot occur there and the manual 'unset one of them' workaround is unnecessary; the stripping shipped in v1.4.7. The advice remains genuinely applicable mainly to Claude models the strip regex does not match - notably Claude Haiku 4.5 (the regex deliberately covers only opus|sonnet) - while Opus 4.7+/Fable 5/Mythos 5 get all samplers stripped as the bullet already says. As written, the bullet sends Sonnet users chasing a fix for an error the engine already prevents.

Suggested fix: Narrow the bullet: the engine automatically omits topP for Sonnet/Opus 4.5-4.6 on every route (Anthropic direct, OpenRouter, OpenAI-compatible), and strips all samplers for Opus 4.7+/Fable 5/Mythos 5, so no manual action is needed for those families. The unset-one-of-them workaround only applies to Claude models the engine does not recognize - notably Claude Haiku 4.5 via OpenRouter or an OpenAI-compatible endpoint. Mention that turning off a parameter's Send toggle is the way to unset it.

Originally created by @kolacheee on GitHub (Jul 5, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3256 Originally assigned to: @SpicyMarinara on GitHub. `docs/GENERATION_PARAMETERS.md` has drifted from the shipped app. Found in a full docs-vs-code audit against **v2.1.0**. Each item below is independently checkable: open the doc at the noted spot and compare against the app or code. These can all land in one PR that refreshes the file. **6 items found.** --- ### 1. § Defaults, layering list items 2-4 (lines 12-16), especially the Game Mode bullet (line 14) *(outdated)* The layering model is backwards for Game Mode. The doc says mode-specific defaults are injected 'ahead of connection/chat overrides' and that connection defaultParameters (item 3) and per-chat overrides (item 4) win over them. Since v2.0.0, regular game turns apply connection and chat parameters FIRST and then force temperature=1, maxTokens=16384, topP=1, topK=0, minP=0, frequencyPenalty=0, presencePenalty=0, reasoningEffort="maximum", and verbosity=null on top, deliberately clobbering user overrides on every non-Gemma game turn. The doc also implies (line 14) that user-set reasoningEffort/verbosity are honored - true only for the initial world-gen setup call, not for game turns, where both are forced. A user tuning temperature or maxTokens on a Game chat per this doc will see their settings silently ignored. **Suggested fix:** Rewrite the Game Mode bullet and the precedence framing: Game Mode does not layer - on every game turn (except models with 'gemma' in the name) the engine force-overrides temperature/maxTokens/topP/topK/minP/both penalties/reasoningEffort/verbosity AFTER connection and per-chat overrides, so those overrides have no effect on game turns. Gemma models keep user samplers but still get maxTokens floored to 16384. Keep the existing world-gen-setup sentence (reasoning effort/verbosity honored there if explicitly set) but scope it clearly to the setup call only. Leave the scene-chat bullet as is. --- ### 2. entire doc; most acute in § Defaults layering (lines 9-16) and the 'leave one of temperature and topP unset (not at its default value - actually unset)' advice (line 61) *(missing)* The per-parameter Send/include toggles shipped in v2.0.3 are never mentioned. Every parameter row in the editor has a Send switch controlling whether the field is included in the request at all, and a connection's Default Chat Parameters block defaults to sending ONLY Max Output Tokens and Reasoning Effort - temperature, topP, topK, both penalties, and verbosity default to NOT sent (the strict map is persisted when the user enables custom connection defaults, and providers skip any field whose toggle is off). This contradicts the doc's claim that connection defaults 'win': on a newly configured connection the temperature/topP values shown in the editor are not sent to the provider unless the user flips each Send switch on. The chat-settings Advanced Parameters drawer displays the same strict defaults; only the setup wizard's Customize Parameters editor defaults all switches on. The doc's own 'actually unset' advice is left with no explanation of how to unset a parameter - the Send toggle is the mechanism. **Suggested fix:** Add a short 'Send toggles' section: every parameter in the editor has a Send switch; a parameter whose switch is off is omitted from the request entirely regardless of its value. Document the defaults per surface - wizard Customize Parameters editors: all on; connection Default Chat Parameters and the chat-settings Advanced Parameters drawer: only Max Output Tokens and Reasoning Effort on. Update the layering section to note a connection default only 'wins' for fields whose Send switch is on, and rewrite the line-61 advice as 'turn off that parameter's Send toggle' instead of the unexplained 'actually unset'. --- ### 3. intro, line 3: 'Settings → Connections → edit a connection → Generation Parameters' *(outdated)* The connection editor has no section named 'Generation Parameters'. The section holding a connection's default generation parameters is labeled 'Default Chat Parameters', and it is an opt-in block behind a 'Use custom defaults for this connection' switch. No UI surface in the client carries the label 'Generation Parameters' at all, so the doc's primary navigation instruction points at a label that does not exist. **Suggested fix:** Change the path to 'Settings → Connections → edit a connection → Default Chat Parameters' and note it is opt-in: enable 'Use custom defaults for this connection' to set values. --- ### 4. § Defaults item 4 (line 16) and § Wizard customization starting points heading text (line 39) *(outdated)* The setup-wizard toggle is labeled 'Customize Parameters', not 'Customize generation parameters', in both the chat setup wizard and the Game setup wizard. Users scanning the wizard for the doc's exact label will not find it. **Suggested fix:** Use the actual label 'Customize Parameters' (bolded as a UI label) in both places. --- ### 5. § Preset baseline table, maxTokens row note (line 25): 'Game Mode world-gen in particular benefits from 10000 or higher because the structured JSON output is large' *(obsolete)* Setting maxTokens to 10000 for world-gen does nothing: the world-gen setup call floors its output budget at 16384 tokens via Math.max, so user values only matter above 16384, and regular game turns force maxTokens to exactly 16384 regardless of user settings (then clamp to the model's known max output). The tip tells users to tune a knob that has no effect at the recommended value. **Suggested fix:** Replace the note: Game Mode manages its own output budget - the world-gen setup call is automatically floored at 16384 tokens (your value only matters above that), and regular game turns force 16384 outright, so tuning maxTokens for Game Mode is generally unnecessary. --- ### 6. § Per-backend gotchas, second bullet (line 61): 'for most Claude models (Sonnet, Haiku, older Opus), the engine sends both temperature and topP when both are set, and Claude's API rejects this combination' *(outdated)* For Sonnet and Opus 4.5/4.6 the engine auto-strips topP (temperature-only sampling) on every route - including OpenRouter and OpenAI-compatible endpoints - so the described 400 cannot occur there and the manual 'unset one of them' workaround is unnecessary; the stripping shipped in v1.4.7. The advice remains genuinely applicable mainly to Claude models the strip regex does not match - notably Claude Haiku 4.5 (the regex deliberately covers only opus|sonnet) - while Opus 4.7+/Fable 5/Mythos 5 get all samplers stripped as the bullet already says. As written, the bullet sends Sonnet users chasing a fix for an error the engine already prevents. **Suggested fix:** Narrow the bullet: the engine automatically omits topP for Sonnet/Opus 4.5-4.6 on every route (Anthropic direct, OpenRouter, OpenAI-compatible), and strips all samplers for Opus 4.7+/Fable 5/Mythos 5, so no manual action is needed for those families. The unset-one-of-them workaround only applies to Claude models the engine does not recognize - notably Claude Haiku 4.5 via OpenRouter or an OpenAI-compatible endpoint. Mention that turning off a parameter's Send toggle is the way to unset it.
bsakaguchi 2026-10-21 05:42:19 +07:00
Author
Owner

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

Addressed in #3289.

<!-- gh-comment-id:4887420935 --> @SpicyMarinara commented on GitHub (Jul 5, 2026): Addressed in #3289.
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#1752
No description provided.