...
Parameter | Default Value | Description | ||||
---|---|---|---|---|---|---|
|
| Model used for translation | ||||
|
| Model used for detecting the original language of the user message. | ||||
| true | Flag indicating if answered is streamed or not | ||||
| 0 | Temperature used for translation model | ||||
|
| System prompt provided to the model for translation. | ||||
|
| User prompt provided to the model along with the user message for translation. | ||||
|
| System prompt used for language detection | ||||
|
| User prompt used for language detection. | ||||
|
| The maximum number of output tokens allowed by the model. If not set, the model's default token limit will be used. | ||||
| [ | A list of pre-processing functions to pre-process the user input before translation. | ||||
| [ | A list of post-processing functions to run on the translated text. | ||||
| Scope ID containing the glossary file with the translation pairs. | |||||
| e.g. glossary.txt | Name of the glossary file containing the translation pairs as txt file. Currently only translation rules from english to other languages supported. Example
|
...
Here is an example configuration file for this module.
View file | ||
---|---|---|
|
...
Author
...
Code Block |
---|
{
"TranslationConfig": {
"preProcessing": [
{
"name": "translation_glossary",
"value": false
}
],
"postProcessing": [
{
"name": "replace_sharp_s_with_ss",
"value": true,
"language": "German"
},
{
"name": "american_to_british",
"value": true,
"language": "English"
}
],
"streamingActivated": true,
"customOutputTokenLimit": null,
"temperatureTranslation": 0,
"languageModelTranslation": "AZURE_GPT_4_0613",
"scopeIdTranslationGlossary": "TBD",
"fileNameTranslationGlossary": "glossary.txt",
"languageModelLanguageDetection": "AZURE_GPT_4_0613"
}
} |
...
Author |
---|