Skip to main content
Version: Next

Type Alias: LLMTranslatorModel

LLMTranslatorModel = LLMModel & object

Defined in: extensions/llm/tasks/llmTranslation.ts:41

Paths and prompt required to instantiate an LLM translator. One model translates between any two of its supported languages.

Type Declaration​

name​

readonly name: "llm"

Identifies the pipeline this config belongs to.

prompt​

readonly prompt: LLMTranslationPrompt

The model card's translation prompt. Its languageNames are the languages the model translates between.

promptOverrides?​

readonly optional promptOverrides: Readonly<Record<string, LLMTranslationPrompt>>

Prompts used instead of prompt when the source or target language is their key, such as a Chinese prompt for pairs with Chinese.