mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8746] [Feature]: let a package's call choose the cache time of its marked prompt (capability API 1.815) #8482
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#8482
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 @SpicyMarinara on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8746
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
A capability package that marks a stable prompt prefix (capability API 1.814
cacheBreakpoint) gets the connection's cache time: 5 minutes unless the connection has "Extended token caching (1 hour)" on. Otome Hearth writes each scene when the player reaches the previous one, usually more than 5 minutes apart. Its cached story context therefore expires between scenes, and every scene pays the cache-write price again. The maintainer's Anthropic usage on 2026-11-03 showed about 534k cache-write tokens and 30k cache-read tokens in four hours.Proposed solution
Capability API 1.815:
chatCompletetakescacheTtl: "5m" | "1h"for the call's marked prefix.Alternatives considered
Asking every player to turn on the connection's 1-hour cache. That works, but it applies to all of that connection's calls, not only the prefixes a package knows it will reuse.