mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6003] [Feature]: Request: Automatically fetch context size limit from local inference backends #3323
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3323
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @scavru on GitHub (Sep 9, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6003
Originally assigned to: @SpicyMarinara on GitHub.
Describe the bug / problem
Currently, users have to manually set and synchronize the context window size in the engine settings to match their backend. If the backend configuration changes, or if the user switches models locally (e.g., in KoboldAI, Oobabooga, or TabbyAPI), they must remember to manually update the token limit in the frontend, which is prone to oversight and context truncation.
Describe the solution you'd like
I would love to see a feature similar to SillyTavern, where the engine automatically fetches the maximum context size directly from the connected local inference backend API.
This mechanism should:
/api/v1/modelor equivalent setup status endpoints depending on the API type) to retrieve the active model's maximum context length.Describe alternatives you've considered
Manually checking the console of the local backend and adjusting the slider in Marinara Engine every single time a model or setting changes.
Additional context
Implementing this would greatly improve the user experience for local LLM users, preventing unintended context overflows or under-utilization of the available context window after a page refresh.
@SpicyMarinara commented on GitHub (Sep 9, 2026):
Owner: @SpicyMarinara, assisted by Codex. Taking this issue in the assigned-issue sweep, PR #6007 targeting staging. Existing outside contributor PRs are excluded from the sweep.
@SpicyMarinara commented on GitHub (Sep 9, 2026):
Addressed in #6007, merged into
stagingas46d184753d. The final CI matrix and CodeRabbit review passed; validation details and manual follow-up checks are in the PR.