Skip to main content
The AI panels send the current editor rows to the active provider profile and write returned targets back into the AST, Regex, or Theme tables. Provider definitions come from LLM_PROVIDERS, which currently exposes 16 built-in configs.

Providers

Cost estimate

Before translation starts, the AI panel calls the active provider’s estimateTokens() implementation and shows:
  • estimated token count
  • estimated cost
  • the input/output pricing used by the current profile
If the current profile enables custom pricing, the estimate uses those values.

Batch size, concurrency, timeout, and language

The AST / Regex / Theme AI panels edit these global settings directly:
  • llmBatchSize
  • llmConcurrencyLimit
  • llmTimeout
  • llmStyle
  • language / llmLanguage
Default values are 10, 3, and 60000 for batch size, concurrency limit, and timeout.

What gets translated by default

The current controllers build targetItems and only send rows whose target is:
  • empty
  • whitespace-only
  • equal to source
Existing translated rows are only resent when overwrite is enabled in the AI panel.

Prompt templates

The current implementation stores three prompt templates:
  • llmAstPrompt
  • llmRegexPrompt
  • llmThemePrompt
You can edit them from 语言模型, and for AST / Regex also from AST 配置 and RE 配置.