mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-28 08:04:13 +08:00
.
This commit is contained in:
parent
d77c38e019
commit
0cadede359
@ -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"]'
|
|
@ -1644,13 +1644,6 @@
|
|||||||
"name": "chatgpt",
|
"name": "chatgpt",
|
||||||
"is_gpt_like": true
|
"is_gpt_like": true
|
||||||
},
|
},
|
||||||
"dev_duckduckgo": {
|
|
||||||
"use": false,
|
|
||||||
"color": "blue",
|
|
||||||
"type": "dev",
|
|
||||||
"name": "DuckDuckGo",
|
|
||||||
"is_gpt_like": true
|
|
||||||
},
|
|
||||||
"dev_chatgpt_mirror": {
|
"dev_chatgpt_mirror": {
|
||||||
"use": false,
|
"use": false,
|
||||||
"color": "blue",
|
"color": "blue",
|
||||||
|
@ -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": {
|
"dev_chatgpt_mirror": {
|
||||||
"args": {
|
"args": {
|
||||||
"target_url": "https://chatgpt.com/",
|
"target_url": "https://chatgpt.com/",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user