Skip to main content
Version: Next

Type Alias: LLMTranslationPrompt

LLMTranslationPrompt = object

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

A translation prompt, as a model card gives it.

Properties​

languageNames​

readonly languageNames: Readonly<Record<string, string>>

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

The name the template uses for each language, keyed by language code.


template​

readonly template: string

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

The user turn, in which {source}, {target} and {text} stand for the source and target language names and the line to translate.