[PR #8699] [MERGED] docs(packages): cache prices vary by model; name which providers cache on their own #8753

Closed
opened 2026-11-07 17:39:27 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8699
Author: @SpicyMarinara
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @SpicyMarinara

Base: staging ← Head: docs/package-cache-pricing


📝 Commits (1)

  • 6366b1f docs(packages): cache prices vary by model; name which providers cache on their own

📊 Changes

2 files changed (+7 additions, -4 deletions)

View changed files

📝 docs/development/optional-agent-packages.md (+3 -2)
📝 packages/shared/src/types/capability-runtime.ts (+4 -2)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #8695

Why this change

#8698 merged a few seconds before this commit was pushed, so two corrections that local CodeRabbit raised on it are not on staging:

  • The docs said a cache read costs 0.1× the input price. The rate depends on the model.
  • The cacheBreakpoint type comment said "others cache identical prefixes on their own". That includes OpenRouter and custom endpoints, which do not take the marker.

What changed

  • docs/development/optional-agent-packages.md: a cache write costs more than the input price once, and a read costs a fraction of it. The exact rates depend on the model, so the section points to Anthropic's model pricing.
  • packages/shared/src/types/capability-runtime.ts: the comment names OpenAI, Gemini, xAI and DeepSeek as the providers that cache on their own. It also says OpenRouter and custom OpenAI-compatible endpoints do not take the marker yet, so Claude reached through them is not cached.

There is no code change.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

Comments and docs only. Prettier passes on the changed type file.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

The English doc changes; the translations are covered by #8697.

UI evidence (if applicable)

No UI change.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/8699 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `docs/package-cache-pricing` --- ### 📝 Commits (1) - [`6366b1f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6366b1f323ab652d274ea61a35e9f1895037c399) docs(packages): cache prices vary by model; name which providers cache on their own ### 📊 Changes **2 files changed** (+7 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `docs/development/optional-agent-packages.md` (+3 -2) 📝 `packages/shared/src/types/capability-runtime.ts` (+4 -2) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #8695 ## Why this change #8698 merged a few seconds before this commit was pushed, so two corrections that local CodeRabbit raised on it are not on staging: - The docs said a cache read costs 0.1× the input price. The rate depends on the model. - The `cacheBreakpoint` type comment said "others cache identical prefixes on their own". That includes OpenRouter and custom endpoints, which do not take the marker. ## What changed - **`docs/development/optional-agent-packages.md`:** a cache write costs more than the input price once, and a read costs a fraction of it. The exact rates depend on the model, so the section points to Anthropic's model pricing. - **`packages/shared/src/types/capability-runtime.ts`:** the comment names OpenAI, Gemini, xAI and DeepSeek as the providers that cache on their own. It also says OpenRouter and custom OpenAI-compatible endpoints do not take the marker yet, so Claude reached through them is not cached. There is no code change. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Comments and docs only. Prettier passes on the changed type file. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) The English doc changes; the translations are covered by #8697. ## UI evidence (if applicable) No UI change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 17:39:27 +07:00
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#8753
No description provided.