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
readonlyname:"llm"
Identifies the pipeline this config belongs to.
prompt
readonlyprompt:LLMTranslationPrompt
The model card's translation prompt. Its languageNames are the languages
the model translates between.
promptOverrides?
readonlyoptionalpromptOverrides: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.