LunaTranslator/py/files/defaultconfig/translatorsetting.json
恍兮惚兮 e5e483721f .
2024-12-13 18:10:31 +08:00

1155 lines
21 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"lingva": {
"args": {
"host": "translate.plausibility.cloud"
}
},
"reverso": {
"args": {
"origin": 0
},
"argstype": {
"origin": {
"rank": 0,
"type": "combo",
"list": [
"translation.web",
"contextweb"
]
}
}
},
"deepl": {
"args": {
"usewhich": 0,
"github": "https://github.com/OwO-Network/DeepLX",
"api": "http://127.0.0.1:1188/translate",
"chromepath": "",
"debugport": 9222
},
"argstype": {
"github": {
"name": "DeepLX Github",
"type": "label",
"islink": true,
"refcombo": "usewhich",
"refcombo_i": 1
},
"api": {
"name": "DeepLX api",
"refcombo": "usewhich",
"refcombo_i": 1,
"type": "textlist"
},
"chromepath": {
"name": "Chromium_路径",
"refcombo": "usewhich",
"refcombo_i": 2,
"type": "file",
"dir": false
},
"debugport": {
"name": "端口号",
"refcombo": "usewhich",
"refcombo_i": 2,
"type": "intspin",
"min": 0,
"max": 1000000,
"step": 1
},
"usewhich": {
"rank": 0,
"type": "combo",
"name": "类型",
"list": [
"DeepL",
"DeepLX",
"CDP"
]
}
}
},
"cdp_chatgpt": {
"args": {
"usewhich": 0,
"chromepath": "",
"debugport": 9222,
"target_url": "https://duckduckgo.com/?t=h_&q=hi&ia=chat",
"request_method": 0,
"checkneturlfunction": "url.includes(\"v1/chat\")",
"extracttextfunction": "thistext += chunk.message?chunk.message:\"\"",
"textarea_selector": "textarea",
"button_selector": "button[type=\"submit\"]",
"S": "",
"S2": "",
"usingstream": true,
"use_custom_prompt": false,
"custom_prompt": ""
},
"argstype": {
"chromepath": {
"rank": -99,
"name": "Chromium_路径",
"type": "file",
"dir": false
},
"debugport": {
"rank": -98,
"name": "端口号",
"type": "intspin",
"min": 0,
"max": 1000000,
"step": 1
},
"usewhich": {
"rank": -100,
"type": "combo",
"name": "类型",
"list": [
"chatgpt",
"mirror"
]
},
"S2": {
"rank": -11,
"type": "split"
},
"target_url": {
"refcombo": "usewhich",
"refcombo_i": 1,
"rank": -10
},
"S": {
"refcombo": "usewhich",
"refcombo_i": 1,
"rank": 0,
"type": "split"
},
"textarea_selector": {
"refcombo": "usewhich",
"refcombo_i": 1,
"rank": -6,
"name": "CSS selector for textarea"
},
"button_selector": {
"refcombo": "usewhich",
"refcombo_i": 1,
"rank": -5,
"name": "CSS selector for button"
},
"extracttextfunction": {
"refcombo": "usewhich",
"refcombo_i": 1,
"rank": -7,
"name": "Function2 (extract text in stream chunk)"
},
"checkneturlfunction": {
"refcombo": "usewhich",
"refcombo_i": 1,
"rank": -8,
"name": "Function1 (check if url is backend url)"
},
"request_method": {
"refcombo": "usewhich",
"refcombo_i": 1,
"rank": -9,
"type": "combo",
"list": [
"fetch",
"xhr"
]
},
"usingstream": {
"rank": 1,
"name": "流式输出",
"type": "switch"
},
"custom_prompt": {
"rank": 2,
"name": "自定义_promt",
"type": "multiline",
"refswitch": "use_custom_prompt"
}
}
},
"baiduapi": {
"args": {
"API Key": "",
"Secret Key": "",
"APP ID": "",
"密钥": "",
"interface": 0
},
"argstype": {
"密钥": {
"refcombo": "interface",
"refcombo_i": 0,
"type": "textlist"
},
"APP ID": {
"refcombo": "interface",
"refcombo_i": 0,
"type": "textlist"
},
"API Key": {
"refcombo": "interface",
"refcombo_i": 1,
"type": "textlist"
},
"Secret Key": {
"refcombo": "interface",
"refcombo_i": 1,
"type": "textlist"
},
"interface": {
"rank": 0,
"name": "接口",
"type": "combo",
"list": [
"百度翻译开放平台",
"百度智能云"
]
}
}
},
"caiyunapi": {
"args": {
"Token": ""
},
"argstype": {
"Token": {
"type": "textlist"
}
}
},
"deeplapi-free": {
"args": {
"usewhich": 0,
"DeepL-Auth-Key": "",
"DeepL-Auth-Key-2": ""
},
"argstype": {
"DeepL-Auth-Key": {
"rank": 1,
"name": "Auth Key",
"refcombo": "usewhich",
"refcombo_i": 0,
"type": "textlist"
},
"DeepL-Auth-Key-2": {
"rank": 2,
"name": "Auth Key",
"refcombo": "usewhich",
"refcombo_i": 1,
"type": "textlist"
},
"usewhich": {
"rank": 0,
"type": "combo",
"name": "类型",
"list": [
"Free",
"Pro"
]
}
}
},
"yandexapi": {
"args": {
"key": ""
},
"argstype": {
"key": {
"type": "textlist"
}
}
},
"googleapi": {
"args": {
"key": ""
},
"argstype": {
"key": {
"type": "textlist"
}
}
},
"sugoix": {
"args": {
"api": "http://127.0.0.1:14366/",
"V8": "{main_server}/Resource/translate/Sugoi_Translator_V8.7z",
"V10.1": "{main_server}/Resource/translate/Sugoi_Translator_V10.1.7z"
},
"argstype": {
"V8": {
"type": "label",
"islink": true
},
"V10.1": {
"type": "label",
"islink": true
}
}
},
"huoshanapi": {
"args": {
"Access Key ID": "",
"Secret Access Key": ""
},
"argstype": {
"Access Key ID": {
"type": "textlist"
},
"Secret Access Key": {
"type": "textlist"
}
}
},
"tencentapi": {
"args": {
"SecretId": "",
"SecretKey": "",
"Region": 0
},
"argstype": {
"SecretId": {
"type": "textlist"
},
"SecretKey": {
"type": "textlist"
},
"Region": {
"type": "combo",
"list": [
"ap-beijing",
"ap-shanghai",
"ap-chengdu",
"ap-chongqing",
"ap-guangzhou",
"ap-hongkong",
"ap-mumbai",
"ap-seoul",
"ap-shanghai-fsi",
"ap-shenzhen-fsi",
"ap-singapore",
"ap-tokyo",
"ap-bangkok",
"eu-frankfurt",
"na-ashburn",
"na-siliconvalley",
"na-toronto"
]
}
}
},
"xiaoniu": {
"args": {
"apikey": ""
},
"argstype": {
"apikey": {
"type": "textlist"
}
}
},
"youdaoapi": {
"args": {
"APP_KEY": "",
"APP_SECRET": ""
},
"argstype": {
"APP_KEY": {
"name": "应用ID",
"type": "textlist"
},
"APP_SECRET": {
"name": "应用密钥",
"type": "textlist"
}
}
},
"hwcloud": {
"args": {
"ak": "",
"sk": "",
"endpoint": "cn-north-4"
},
"argstype": {
"ak": {
"name": "Access Key Id",
"type": "textlist"
},
"sk": {
"name": "Secret Access Key",
"type": "textlist"
}
}
},
"claude": {
"args": {
"BASE_URL": "https://api.anthropic.com",
"model": "claude-3-5-sonnet-latest",
"API_KEY": "",
"max_tokens": 2048,
"Temperature": 0.3,
"附带上下文个数": 0,
"使用自定义promt": false,
"自定义promt": "",
"流式输出": true,
"user_user_prompt": "{sentence}",
"use_user_user_prompt": false,
"s": "",
"s2": "",
"prefill": "",
"prefill_use": false
},
"argstype": {
"prefill": {
"refswitch": "prefill_use",
"rank": 5.11
},
"prefill_use": {
"type": "switch"
},
"user_user_prompt": {
"name": "自定义_user message",
"refswitch": "use_user_user_prompt",
"rank": 5.1
},
"s": {
"type": "split",
"rank": 2.5
},
"s2": {
"type": "split",
"rank": 5.12
},
"BASE_URL": {
"name": "API接口地址",
"rank": 0
},
"model": {
"rank": 1,
"type": "lineedit_or_combo",
"list": [
"claude-3-5-sonnet-latest",
"claude-3-5-sonnet-20241022",
"claude-3-5-sonnet-20240620",
"claude-3-opus-latest",
"claude-3-opus-20240229",
"claude-3-sonnet-20240229",
"claude-3-haiku-20240307",
"claude-2.1",
"claude-2.0",
"claude-instant-1.2"
]
},
"API_KEY": {
"name": "API Key",
"rank": 0.5,
"type": "textlist"
},
"流式输出": {
"type": "switch",
"rank": 3
},
"自定义promt": {
"type": "multiline",
"refswitch": "使用自定义promt",
"name": "自定义_system prompt",
"rank": 5
},
"max_tokens": {
"type": "intspin",
"min": 0,
"max": 1000000,
"step": 1
},
"附带上下文个数": {
"type": "intspin",
"min": 0,
"max": 99999,
"step": 1,
"rank": 4.9
},
"Temperature": {
"type": "spin",
"min": 0,
"max": 2,
"step": 0.1
}
}
},
"chatgpt-3rd-party": {
"args": {
"model": "gpt-4o-mini",
"modellistcache": [],
"附带上下文个数": 0,
"API接口地址": "https://api.openai.com",
"SECRET_KEY": "",
"使用自定义promt": false,
"自定义promt": "",
"流式输出": true,
"Temperature": 0.3,
"top_p": 0.3,
"max_tokens": 1024,
"frequency_penalty": 0,
"user_user_prompt": "{sentence}",
"use_user_user_prompt": false,
"other_args": "{}",
"use_other_args": false,
"s": "",
"s2": "",
"prefill": "",
"prefill_use": false
},
"argstype": {
"prefill": {
"refswitch": "prefill_use",
"rank": 5.11
},
"prefill_use": {
"type": "switch"
},
"other_args": {
"type": "multiline",
"refswitch": "use_other_args",
"name": "其他参数"
},
"user_user_prompt": {
"name": "自定义_user message",
"refswitch": "use_user_user_prompt",
"rank": 5.1
},
"s": {
"type": "split",
"rank": 2.5
},
"s2": {
"type": "split",
"rank": 5.12
},
"API接口地址": {
"rank": 0
},
"SECRET_KEY": {
"rank": 1,
"name": "API Key",
"type": "textlist"
},
"model": {
"rank": 2,
"type": "lineedit_or_combo",
"list_function": "list_models",
"list_cache": "modellistcache"
},
"modellistcache": {
"type": "list_cache"
},
"top_p": {
"type": "spin",
"min": 0,
"max": 1,
"step": 0.01
},
"frequency_penalty": {
"type": "spin",
"min": -2,
"max": 2,
"step": 0.05
},
"max_tokens": {
"type": "intspin",
"min": 1,
"max": 1000000,
"step": 1
},
"流式输出": {
"type": "switch",
"rank": 3
},
"自定义promt": {
"type": "multiline",
"refswitch": "使用自定义promt",
"name": "自定义_system prompt",
"rank": 5
},
"附带上下文个数": {
"type": "intspin",
"min": 0,
"max": 99999,
"step": 1,
"rank": 4.9
},
"Temperature": {
"type": "spin",
"min": 0,
"max": 2,
"step": 0.1
}
}
},
"cohere": {
"args": {
"SECRET_KEY": "",
"Temperature": 0.3,
"modellistcache": [],
"model": "command-r",
"附带上下文个数": 0,
"使用自定义promt": false,
"自定义promt": "",
"流式输出": true,
"use_user_user_prompt": false,
"user_user_prompt": "{sentence}",
"s": "",
"s2": "",
"prefill": "",
"prefill_use": false
},
"argstype": {
"prefill": {
"refswitch": "prefill_use",
"rank": 5.11
},
"prefill_use": {
"type": "switch"
},
"s2": {
"type": "split",
"rank": 5.12
},
"user_user_prompt": {
"name": "自定义_user message",
"refswitch": "use_user_user_prompt",
"rank": 5.1
},
"s": {
"type": "split",
"rank": 1.5
},
"SECRET_KEY": {
"rank": 0,
"name": "API Key",
"type": "textlist"
},
"model": {
"rank": 1,
"type": "lineedit_or_combo",
"list_function": "list_models",
"list_cache": "modellistcache"
},
"modellistcache": {
"type": "list_cache"
},
"自定义promt": {
"type": "multiline",
"refswitch": "使用自定义promt",
"name": "自定义_system prompt",
"rank": 5
},
"流式输出": {
"type": "switch",
"rank": 2
},
"附带上下文个数": {
"type": "intspin",
"min": 0,
"max": 99999,
"step": 1,
"rank": 4.9
},
"Temperature": {
"type": "spin",
"min": 0,
"max": 2,
"step": 0.1
}
}
},
"jb7": {
"args": {
"path": ""
},
"argstype": {
"path": {
"type": "file",
"dir": true,
"name": "路径"
}
}
},
"kingsoft": {
"args": {
"path": ""
},
"argstype": {
"path": {
"name": "路径",
"type": "file",
"dir": true
}
}
},
"eztrans": {
"args": {
"path": ""
},
"argstype": {
"path": {
"name": "路径",
"type": "file",
"filter": "J2KEngine.dll",
"dir": false
}
}
},
"dreye": {
"args": {
"path": ""
},
"argstype": {
"path": {
"name": "路径",
"type": "file",
"dir": true
}
}
},
"rengong": {
"args": {
"jsonfile": [],
"skip_other_on_success": false
},
"argstype": {
"jsonfile": {
"type": "file",
"name": "json文件",
"dir": false,
"filter": "*.json",
"multi": true
},
"skip_other_on_success": {
"type": "switch",
"name": "成功时跳过其他翻译"
}
}
},
"premt": {
"args": {
"sqlitefile": "",
"仅使用激活的翻译": false
},
"argstype": {
"sqlitefile": {
"type": "file",
"name": "sqlite文件",
"dir": false,
"filter": "*.sqlite"
},
"仅使用激活的翻译": {
"type": "switch"
}
}
},
"azure": {
"args": {
"key1": "",
"Location": ""
},
"argstype": {
"key1": {
"type": "textlist"
}
}
},
"ibm": {
"args": {
"apiurl": "",
"apikey": ""
},
"argstype": {
"apiurl": {
"type": "textlist"
},
"apikey": {
"type": "textlist"
}
}
},
"aliyunapi": {
"args": {
"Access_Key": "",
"SECRET_KEY": ""
},
"argstype": {
"Access_Key": {
"name": "AccessKey ID",
"type": "textlist"
},
"SECRET_KEY": {
"name": "AccessKey Secret",
"type": "textlist"
}
}
},
"dev_chatgpt": {
"args": {
"usingstream": true,
"use_custom_prompt": false,
"custom_prompt": ""
},
"argstype": {
"usingstream": {
"name": "流式输出",
"type": "switch"
},
"custom_prompt": {
"name": "自定义_promt",
"type": "multiline",
"refswitch": "use_custom_prompt"
}
}
},
"dev_chatgpt_mirror": {
"args": {
"target_url": "https://chatgpt.com/",
"request_method": 0,
"checkneturlfunction": "url.includes(\"conversation\")",
"extracttextfunction": "thistext = chunk.message.content.parts[0]",
"textarea_selector": "#prompt-textarea",
"button_selector": "#__next > div.relative.z-0.flex.h-full.w-full.overflow-hidden > div.relative.flex.h-full.max-w-full.flex-1.flex-col.overflow-hidden > main > div.flex.h-full.flex-col.focus-visible\\\\:outline-0 > div.md\\\\:pt-0.dark\\\\:border-white\\\\/20.md\\\\:border-transparent.md\\\\:dark\\\\:border-transparent.w-full > div.text-base.px-3.md\\\\:px-4.m-auto.md\\\\:px-5.lg\\\\:px-1.xl\\\\:px-5 > div > form > div > div.flex.w-full.items-center > div > div > button",
"S": "",
"usingstream": true,
"use_custom_prompt": false,
"custom_prompt": ""
},
"argstype": {
"target_url": {
"rank": -10
},
"S": {
"rank": 0,
"type": "split"
},
"textarea_selector": {
"rank": -6,
"name": "CSS selector for textarea"
},
"button_selector": {
"rank": -5,
"name": "CSS selector for button"
},
"extracttextfunction": {
"rank": -7,
"name": "Function2 (extract text in stream chunk)"
},
"checkneturlfunction": {
"rank": -8,
"name": "Function1 (check if url is backend url)"
},
"request_method": {
"rank": -9,
"type": "combo",
"list": [
"fetch",
"xhr"
]
},
"usingstream": {
"rank": 1,
"name": "流式输出",
"type": "switch"
},
"custom_prompt": {
"rank": 2,
"name": "自定义_promt",
"type": "multiline",
"refswitch": "use_custom_prompt"
}
}
},
"gemini": {
"args": {
"SECRET_KEY": "",
"Temperature": 0.3,
"BASE_URL": "https://generativelanguage.googleapis.com",
"model": "gemini-1.5-flash",
"modellistcache": [],
"context": 0,
"use_custom_prompt": false,
"custom_prompt": "",
"user_user_prompt": "{sentence}",
"use_user_user_prompt": false,
"s": "",
"s2": "",
"usingstream": true,
"prefill": "",
"prefill_use": false
},
"argstype": {
"prefill": {
"refswitch": "prefill_use",
"rank": 5.11
},
"prefill_use": {
"type": "switch"
},
"BASE_URL": {
"name": "API接口地址",
"rank": 0
},
"usingstream": {
"name": "流式输出",
"type": "switch",
"rank": 4
},
"user_user_prompt": {
"name": "自定义_user message",
"refswitch": "use_user_user_prompt",
"rank": 5.1
},
"s": {
"type": "split",
"rank": 3.5
},
"s2": {
"type": "split",
"rank": 5.12
},
"custom_prompt": {
"name": "自定义_system prompt",
"type": "multiline",
"refswitch": "use_custom_prompt",
"rank": 5
},
"context": {
"type": "intspin",
"min": 0,
"max": 99999,
"step": 1,
"name": "附带上下文个数",
"rank": 4.9
},
"SECRET_KEY": {
"rank": 2,
"name": "API Key",
"type": "textlist"
},
"model": {
"rank": 3,
"type": "lineedit_or_combo",
"list_function": "list_models",
"list_cache": "modellistcache"
},
"modellistcache": {
"type": "list_cache"
},
"Temperature": {
"type": "spin",
"min": 0,
"max": 2,
"step": 0.1
}
}
},
"sakura": {
"args": {
"API接口地址": "http://127.0.0.1:8080/",
"use_context": false,
"append_context_num": 3,
"temperature": 0.1,
"top_p": 0.3,
"num_beams": 1,
"do_sample": true,
"max_new_token": 1024,
"repetition_penalty": 1,
"frequency_penalty": 0,
"fix_degeneration": false,
"流式输出": true,
"prompt_version": 2,
"s": ""
},
"argstype": {
"s": {
"type": "split",
"rank": 0.5
},
"prompt_version": {
"rank": 1.1,
"name": "prompt格式需要根据模型版本决定",
"type": "combo",
"list": [
"v0.9",
"v0.10pre1_支持gpt词典",
"v1.0/v1.0pre1_支持gpt词典"
]
},
"API接口地址": {
"rank": 0
},
"流式输出": {
"type": "switch",
"rank": 1
},
"append_context_num": {
"type": "intspin",
"min": 1,
"max": 99999,
"step": 1,
"refswitch": "use_context",
"name": "利用上文信息翻译(通常会有一定的效果提升,但会导致变慢)"
},
"temperature": {
"type": "spin",
"min": 0,
"max": 2,
"step": 0.1
},
"top_p": {
"type": "spin",
"min": 0,
"max": 1,
"step": 0.01
},
"num_beams": {
"type": "intspin",
"min": 1,
"max": 16,
"step": 1
},
"do_sample": {
"type": "switch"
},
"fix_degeneration": {
"type": "switch"
},
"max_new_token": {
"type": "intspin",
"min": 1,
"max": 1000000,
"step": 1
},
"repetition_penalty": {
"type": "spin",
"min": 0,
"max": 2,
"step": 0.1
},
"frequency_penalty": {
"type": "spin",
"min": -2,
"max": 2,
"step": 0.05
}
}
},
"chatgpt-offline": {
"args": {
"model": "gpt-4o-mini",
"modellistcache": [],
"附带上下文个数": 0,
"API接口地址": "https://api.openai.com",
"SECRET_KEY": "",
"使用自定义promt": false,
"自定义promt": "",
"流式输出": true,
"Temperature": 0.3,
"top_p": 0.3,
"max_tokens": 1024,
"frequency_penalty": 0,
"user_user_prompt": "{sentence}",
"use_user_user_prompt": false,
"other_args": "{}",
"use_other_args": false,
"s": "",
"s2": "",
"prefill": "",
"prefill_use": false
},
"argstype": {
"prefill": {
"refswitch": "prefill_use",
"rank": 5.11
},
"prefill_use": {
"type": "switch"
},
"other_args": {
"type": "multiline",
"refswitch": "use_other_args",
"name": "其他参数"
},
"user_user_prompt": {
"name": "自定义_user message",
"refswitch": "use_user_user_prompt",
"rank": 5.1
},
"s": {
"type": "split",
"rank": 2.5
},
"s2": {
"type": "split",
"rank": 5.12
},
"API接口地址": {
"rank": 0
},
"SECRET_KEY": {
"rank": 6,
"name": "API Key",
"type": "textlist"
},
"model": {
"rank": 1,
"type": "lineedit_or_combo",
"list_function": "list_models",
"list_cache": "modellistcache"
},
"modellistcache": {
"type": "list_cache"
},
"top_p": {
"type": "spin",
"min": 0,
"max": 1,
"step": 0.01
},
"frequency_penalty": {
"type": "spin",
"min": -2,
"max": 2,
"step": 0.05
},
"max_tokens": {
"type": "intspin",
"min": 1,
"max": 1000000,
"step": 1
},
"流式输出": {
"type": "switch",
"rank": 3
},
"自定义promt": {
"type": "multiline",
"refswitch": "使用自定义promt",
"name": "自定义_system prompt",
"rank": 5
},
"附带上下文个数": {
"type": "intspin",
"min": 0,
"max": 99999,
"step": 1,
"rank": 4.9
},
"Temperature": {
"type": "spin",
"min": 0,
"max": 2,
"step": 0.1
}
}
}
}