This commit is contained in:
DazedAnon 2026-06-12 17:57:06 -05:00
parent 40a00aa06a
commit 08436de940
2 changed files with 4 additions and 0 deletions

View file

@ -6,6 +6,7 @@ An AI-powered game translation tool with a GUI. Translate RPG Maker, Ren'Py, Tyr
- **[Sinflower](https://github.com/Sinflower)** — [RV2JSON](https://github.com/Sinflower/RV2JSON) — enables RPGMaker Ace games to be translated the same way as MV/MZ by converting rvdata2 files to JSON and back. A copy is bundled offline in `util/ace/offline/`; newer builds are downloaded when online.
- **Sakura & Kao_SSS** — TL Inspector (`util/tl_inspector/`) — in-game translation source inspector and live-edit plugin for RPG Maker MV/MZ playtesting.
- **Len** — batch translation mode — Anthropic Message Batches API integration (collect/consume pipeline, cost estimation, resume, and GUI/workflow support).
## Table of Contents
@ -188,6 +189,8 @@ This is the system prompt sent to the AI. A default `prompt.txt` is included and
## Batch Translation (Anthropic, 50% off)
Batch mode was contributed by **Len** — see [Credits](#credits).
When using a Claude model, the CLI offers a third mode that translates through the
[Anthropic Message Batches API](https://platform.claude.com/docs/en/build-with-claude/batch-processing.md)
— every token (input, output, and prompt-cache reads/writes) is billed at **50% of the live price**.

View file

@ -644,6 +644,7 @@ def set_var_translations_batch(pairs):
# ===== Anthropic Message Batches (50% off all token usage) =====
# Batch integration by Len — two-pass collect/consume flow; see README Credits.
# Batch translation is a two-pass flow driven by the batch phase (kept in the
# BATCH_PHASE env var so GUI subprocesses inherit it):
# collect: translateAI builds each cache-missed request (byte-identical to a