[GH-ISSUE #3764] [Feature]: Add Max Output Tokens option in noodle settings #2029

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

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

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Noodle generation uses a hardcoded "max_tokens": 6144, which is too small for Kimi models. As a result, kimi-k2.7 fails almost every time and returns no response.

Proposed solution

Add a Max Output Tokens option in noodle settings, the same way it is done in the Agents settings.

Alternatives considered

Alternatively, we could add something like Agents Settings to the Connection settings, including a minimum max_tokens (and maximum max_tokens), and require all agents and system calls to respect them.

Template check

  • 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/3764 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Noodle generation uses a hardcoded `"max_tokens": 6144`, which is too small for Kimi models. As a result, kimi-k2.7 fails almost every time and returns no response. ## Proposed solution Add a Max Output Tokens option in noodle settings, the same way it is done in the Agents settings. ## Alternatives considered Alternatively, we could add something like Agents Settings to the Connection settings, including a `minimum max_tokens` (and `maximum max_tokens`), and require all agents and system calls to respect them. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:44:43 +07:00
Author
Owner

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

Hey pookie, the max output tokens are not hard-coded for Noodle! The minimum size is calculated based on how many characters are responding, but the number is overwritten by your Connection's Default Chat Parameters! So it means you probably set that number there. :)

<!-- gh-comment-id:5010726883 --> @SpicyMarinara commented on GitHub (Jul 18, 2026): Hey pookie, the max output tokens are not hard-coded for Noodle! The minimum size is calculated based on how many characters are responding, but the number is overwritten by your Connection's Default Chat Parameters! So it means you probably set that number there. :)
Author
Owner

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

No, that's not the case. I see "max_tokens":6144 in the call for two characters, and even less for profile generation, despite Max Output Tokens being set to 16000 and enabled. I found that this can be worked around via Custom Parameters, where max_tokens is then set correctly:

{
  "max_tokens": 16000
}
<!-- gh-comment-id:5010968892 --> @Aculeasis commented on GitHub (Jul 18, 2026): No, that's not the case. I see `"max_tokens":6144` in the call for two characters, and even less for profile generation, despite `Max Output Tokens` being set to 16000 and enabled. I found that this can be worked around via `Custom Parameters`, where `max_tokens` is then set correctly: ``` { "max_tokens": 16000 } ```
Author
Owner

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

Hm, let me investigate this, then.

<!-- gh-comment-id:5011115831 --> @SpicyMarinara commented on GitHub (Jul 18, 2026): Hm, let me investigate this, then.
Author
Owner

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

Addressed by #3785. Noodle now honors the enabled connection Max Output Tokens value for both generated profiles and timeline refreshes while preserving the calculated fallback and hard caps. CodeRabbit follow-up is clean, and both pnpm validation and container checks pass.

<!-- gh-comment-id:5011164494 --> @SpicyMarinara commented on GitHub (Jul 18, 2026): Addressed by #3785. Noodle now honors the enabled connection Max Output Tokens value for both generated profiles and timeline refreshes while preserving the calculated fallback and hard caps. CodeRabbit follow-up is clean, and both pnpm validation and container checks pass.
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#2029
No description provided.