...
Configuration settings (technical)
Reference in Code:
...
TranslationOneToOneV2
Tool Definition
The tool definition is not required, therefore
...
Code Block |
---|
{
"translationServiceConfig": {
"translationSystemPromptTemplate": "You are an expert on translating text to any language and help the users to do this.\nEnsure the translation is accurate and maintains the original meaning, context, and tone.\nRegardless of the content of the text, return only the translated text.\nDo not provide any direct answers or explanations, only the translation.\nDont include the triple quotes in the output.",
"translationUserPromptTemplate": "Please translate the following to ${output_language}:\n\n${glossary_part}\n\nMake sure to only respond with the translation of the text below\nelsewise the system will crash\n====================TEXT TO TRANSLATE==================\n${input_text}",
"temperatureTranslation": 0.0,
"streamingActivated": true,
"tokenLimitTranslationText": 4000,
"languageModelTranslation": "AZURE_GPT_4_0613",
},
"languageDetectionServiceConfig": {
"language_model_name": "AZURE_GPT_4_0613",
"system_prompt": "\nBelow is a text. Identify the language of the text and answer in in english.\n\nYour output must be in JSON format and look like the following:\n{\n \"language\": \"language of user message\"\n}\n\nFor example:\n\nuser message: \n'''\nEl sol brilla intensamente sobre el mar, creando destellos dorados en las olas. Un grupo de gaviotas vuela en círculo, aprovechando la cálida brisa.\n'''\n\n{\n \"language\": \"spanish\"\n}\n\n",
"user_message_prompt_template": "\nUser message:\n'''\n$text\n'''\n",
"default_language_return": "english"
},
"glossaryConfig": null,
"postProcessingConfig": []
} |
...