Type Alias: LLMTranslationPrompt
LLMTranslationPrompt =
object
Defined in: extensions/llm/tasks/llmTranslation.ts:26
A translation prompt, as a model card gives it.
Properties
languageNames
readonlylanguageNames: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
readonlytemplate: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.