Background
Concurrency for translation chunk processing is currently hardcoded in scripts/notion-fetch/generateBlocks.ts with a // TODO: Make concurrency configurable via environment variable or config comment.
What to do
- Add a
TRANSLATION_CONCURRENCY (or similar) constant/env-var alongside the existing constants in scripts/constants.ts
- Wire it into the chunk processing loop in
generateBlocks.ts
- Document the env var in the repo's workflow documentation
This allows tuning for different API rate limits (OpenAI vs DeepSeek vs local models) without code changes.
Background
Concurrency for translation chunk processing is currently hardcoded in
scripts/notion-fetch/generateBlocks.tswith a// TODO: Make concurrency configurable via environment variable or configcomment.What to do
TRANSLATION_CONCURRENCY(or similar) constant/env-var alongside the existing constants inscripts/constants.tsgenerateBlocks.tsThis allows tuning for different API rate limits (OpenAI vs DeepSeek vs local models) without code changes.