Skip to content

Implement concurrent translation for LLMTranslator.ts #144

Description

@vitonsky

Let's implement concuccent translation for src/translators/LLMTranslators/LLMTranslator.ts

The idea is simple, we split request texts into few chunks and send N requests simultaneously.

The benefits is

  • Translation runs faster in case the service will not queue our requests (any non free API)
  • In case the error occurs in translation, only one batch will be re-tried instead of whole request

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions