mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6367] [MERGED] fix: respect connection output limits in AI translation #7151
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#7151
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6367
Author: @SpicyMarinara
Created: 9/19/2026
Status: ✅ Merged
Merged: 9/19/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/translation-output-limit📝 Commits (2)
655db6achore: start translation token limit fix for #6366604a23ffix: use connection output budget for AI translations (#6366)📊 Changes
3 files changed (+44 additions, -1 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/server/src/routes/translate.routes.ts(+8 -1)📝
scripts/regressions/connection-test-parameters.regression.ts(+35 -0)📄 Description
Linked issue
Closes #6366.
Why this change
An AI translation made through a connection configured for 8,192 output tokens still sent
max_tokens: 4096, which could truncate long translations. The translation route omitted the budget and fell through to the provider default.What changed
Reuse the existing stored-parameter helpers: translation requests use the connection's enabled Max Tokens value, or its output-token override when no value is configured, then the existing 4,096 fallback. Provider caps still apply, and disabling Max Tokens omits that parameter. Translation keeps its dedicated temperature of 0.3. This is nine lines in the existing route plus regression coverage and a changelog entry.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdObserved automated evidence:
pnpm checkpasses, including localization, formatting, type checks, lint, and production builds. One existing GameNarration hook warning remains; no new warnings were introduced.The physical KoboldCpp installation and real-model translation quality were not tested locally. No UI or user-guide changes are needed.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.