mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #203] [MERGED] Allow setting max_tokens per Connection. #4502
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#4502
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/203
Author: @pwildani
Created: 4/23/2026
Status: ✅ Merged
Merged: 4/23/2026
Merged by: @SpicyMarinara
Base:
main← Head:pwildani-max-tokens📝 Commits (2)
ca96ca2Allow setting max_tokens per Connection.c7e706eMerge branch 'main' into pwildani-max-tokens📊 Changes
24 files changed (+114 additions, -31 deletions)
View changed files
📝
packages/client/src/components/connections/ConnectionEditor.tsx(+33 -0)📝
packages/server/src/db/migrate.ts(+5 -0)📝
packages/server/src/db/schema/connections.ts(+2 -0)📝
packages/server/src/routes/character-maker.routes.ts(+1 -1)📝
packages/server/src/routes/chats.routes.ts(+1 -1)📝
packages/server/src/routes/connections.routes.ts(+1 -1)📝
packages/server/src/routes/conversation.routes.ts(+1 -1)📝
packages/server/src/routes/encounter.routes.ts(+3 -3)📝
packages/server/src/routes/game.routes.ts(+6 -5)📝
packages/server/src/routes/generate.routes.ts(+7 -1)📝
packages/server/src/routes/generate/retry-agents-route.ts(+2 -1)📝
packages/server/src/routes/lorebook-maker.routes.ts(+1 -1)📝
packages/server/src/routes/lorebooks.routes.ts(+1 -0)📝
packages/server/src/routes/persona-maker.routes.ts(+1 -1)📝
packages/server/src/routes/prompt-reviewer.routes.ts(+1 -1)📝
packages/server/src/routes/scene.routes.ts(+2 -2)📝
packages/server/src/routes/translate.routes.ts(+1 -1)📝
packages/server/src/services/agents/agent-executor.ts(+12 -3)📝
packages/server/src/services/llm/base-provider.ts(+12 -0)📝
packages/server/src/services/llm/provider-registry.ts(+9 -4)...and 4 more files
📄 Description
Why this change
This lets providers that restrict output tokens to a small limit still work with coalescing agent calls into batches.
What changed
Validation
pnpm checkManual verification notes
Docs and release impact
UI evidence (if applicable)
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.