From 08436de94040702359adea0c054a00fd187138d6 Mon Sep 17 00:00:00 2001 From: DazedAnon Date: Fri, 12 Jun 2026 17:57:06 -0500 Subject: [PATCH] Credits --- README.md | 3 +++ util/translation.py | 1 + 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 4a1cad5..a545e87 100644 --- a/README.md +++ b/README.md @@ -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**. diff --git a/util/translation.py b/util/translation.py index 0d9c9a0..4e8e704 100644 --- a/util/translation.py +++ b/util/translation.py @@ -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