From 0cadede359f0606b59e9767f6b5b757d9fd796b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <1173718158@qq.com> Date: Thu, 28 Nov 2024 14:14:24 +0800 Subject: [PATCH] . --- py/LunaTranslator/translator/dev_duckduckgo.py | 10 ---------- py/files/defaultconfig/config.json | 7 ------- py/files/defaultconfig/translatorsetting.json | 18 ------------------ 3 files changed, 35 deletions(-) delete mode 100644 py/LunaTranslator/translator/dev_duckduckgo.py diff --git a/py/LunaTranslator/translator/dev_duckduckgo.py b/py/LunaTranslator/translator/dev_duckduckgo.py deleted file mode 100644 index 0f64d134..00000000 --- a/py/LunaTranslator/translator/dev_duckduckgo.py +++ /dev/null @@ -1,10 +0,0 @@ -from translator.dev_llm_common import commonllmdev - - -class TS(commonllmdev): - target_url = "https://duckduckgo.com/?t=h_&q=hi&ia=chat" - jsfile = "commonhookfetchstream.js" - function1 = 'url.includes("duckchat/v1/chat")' - function2 = r"""thistext += (chunk.message?chunk.message:"")""" - textarea_selector = 'textarea[name="user-prompt"]' - button_selector = 'button[type="submit"]' diff --git a/py/files/defaultconfig/config.json b/py/files/defaultconfig/config.json index f5519383..9b21c0c9 100644 --- a/py/files/defaultconfig/config.json +++ b/py/files/defaultconfig/config.json @@ -1644,13 +1644,6 @@ "name": "chatgpt", "is_gpt_like": true }, - "dev_duckduckgo": { - "use": false, - "color": "blue", - "type": "dev", - "name": "DuckDuckGo", - "is_gpt_like": true - }, "dev_chatgpt_mirror": { "use": false, "color": "blue", diff --git a/py/files/defaultconfig/translatorsetting.json b/py/files/defaultconfig/translatorsetting.json index 433ddf65..74553301 100644 --- a/py/files/defaultconfig/translatorsetting.json +++ b/py/files/defaultconfig/translatorsetting.json @@ -909,24 +909,6 @@ } } }, - "dev_duckduckgo": { - "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/",