From 4426a2bf793a111077ea61d651d8055c5bda6755 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 20 Dec 2023 16:35:51 +0000 Subject: [PATCH] update default_config.json --- dist/default_config.json | 45 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/dist/default_config.json b/dist/default_config.json index 5424755..f0e3a7e 100644 --- a/dist/default_config.json +++ b/dist/default_config.json @@ -330,6 +330,49 @@ "dpro": { "apiUrl": "https://api.deepl.com/jsonrpc" }, + "gemini": { + "placeholderDelimiters": [ + "{{", + "}}", + "b" + ], + "immediateTranslationTextCount": 5000, + "translationDebounce": 300, + "interval": 1050, + "prompt": "You are a professional,authentic translation engine,only returns translations.\nTranslate the content to {{to}} Language:\n\nHello \nWorld \n\nThe translation is:\n\n你好\n世界\n\n\nTranslate the content to {{to}} Language:\n\n{{text}}", + "model": "gemini-pro", + "maxTextGroupLengthPerRequest": 10, + "maxTextLengthPerRequest": 1200, + "maxTextGroupLengthPerRequestForSubtitle": 5, + "translationTextSeparator": "", + "bodyConfigs": { + "generationConfig": { + "temperature": 0.1, + "topK": 1, + "topP": 1, + "maxOutputTokens": 2048, + "stopSequences": [] + }, + "safetySettings": [ + { + "category": "HARM_CATEGORY_HARASSMENT", + "threshold": "BLOCK_NONE" + }, + { + "category": "HARM_CATEGORY_HATE_SPEECH", + "threshold": "BLOCK_NONE" + }, + { + "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT", + "threshold": "BLOCK_NONE" + }, + { + "category": "HARM_CATEGORY_DANGEROUS_CONTENT", + "threshold": "BLOCK_NONE" + } + ] + } + }, "openai": { "placeholderDelimiters": [ "{{", @@ -5173,6 +5216,6 @@ } } ], - "buildinConfigUpdatedAt": "2023-12-20T10:14:36.161Z", + "buildinConfigUpdatedAt": "2023-12-20T16:35:51.167Z", "latestVersion": "0.12.8" }