Repository navigation
v1.7.0a1
Add a token-efficient lean translation pipeline, broaden model-provider routing, and refresh the configuration surface for mixed-model workflows.
New Features:
- Add
LeanTranslatorwith compact anchored prompts, sliding context, checkpoint resume, retry handling, binary-split recovery, and atomic fallback for missing lines. - Add lean mode integration to
LRCerthroughTranslationConfig(translate_mode="lean"), including optional Context Review and separate CR/translation chatbots. - Add LiteLLM support as an optional provider gateway via
openlrc[litellm]andlitellm:<provider/model>routing. - Add
ModelConfig.extra_bodypassthrough for provider-specific request parameters across OpenAI-compatible, Anthropic, Gemini, and LiteLLM backends.
Other Changes:
- Replace legacy string-based translation config fields with
ModelConfigobjects for primary, retry, and Context Review chatbots. - Decouple model capability limits from the static model registry;
max_tokensandcontext_windoware now opt-in runtime caps. - Improve custom-provider and provider-prefix inference for OpenAI-compatible, Anthropic, Gemini, LiteLLM, and third-party model names.
- Restrict lingua language detection to the supported language set and add anchor-based validation for lean translation output.
- Split media helpers from
utilsintomedia_utilsto keep heavyweight media dependencies isolated. - Centralize live API test configuration, add LeanTranslator and LiteLLM regression coverage, and update CI to exercise the new optional
litellmextra. - Refresh README examples for lean mode, mixed-model translation, live test configuration, and the current local-LLM/provider support status.