Skip to content

Commit

Permalink
Merge pull request AGIUI#27 from AGIUI/main
Browse files Browse the repository at this point in the history
更新
  • Loading branch information
shadowcz007 authored May 27, 2023
2 parents 5565807 + 593a3f5 commit 5948df4
Show file tree
Hide file tree
Showing 4 changed files with 216 additions and 162 deletions.
123 changes: 0 additions & 123 deletions src/components/combo/ImportComboData.tsx

This file was deleted.

34 changes: 16 additions & 18 deletions src/config/commonsConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"role": "",
"combo": 1,
"interfaces": [
"showInChat",
"contextMenus"
],
"isInfinite": false,
Expand Down Expand Up @@ -44,47 +43,46 @@
"id": "11111"
},
{
"tag": "正文总结1",
"tag": "重点知识介绍",
"role": "",
"combo": 1,
"interfaces": [
"showInChat",
"contextMenus"
],
"isInfinite": false,
"owner": "user",
"prompt": {
"api": {
"url": "",
"protocol": "https://",
"init": {
"body": {},
"cache": "default",
"method": "POST",
"headers": {
"Content-Type": "application/json"
},
"method": "POST",
"body": {},
"mode": "cors",
"cache": "default",
"responseType": "text"
},
"isApi": false,
"protocol": "https://",
"url": ""
"isApi": false
},
"input": "bindCurrentPage",
"model": "ChatGPT",
"output": "default",
"queryObj": {
"isQuery": false,
"protocol": "https://",
"query": "",
"url": ""
"url": "",
"protocol": "https://",
"isQuery": false
},
"temperature": 0.7,
"text": "请帮我用中文完成以下任务的输出,它们分别是总结摘要和要点,你需要用以下格式输出:\n<摘要>\nxxxx\n<要点>\n1.xxxx\n2.xxxx",
"type": "markdown",
"temperature": 0.5,
"text": "请找出文章中出现频率最多的10个关键词,并用中文解释这些关键词是什么意思。",
"type": "prompt",
"url": ""
},
"version": "0.3.1",
"app": "Earth",
"id": "111111111111111111"
"version": "",
"app": "",
"id": 1685084379144
}
]
141 changes: 136 additions & 5 deletions src/config/selectionConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"tag": "介绍更多",
"role": "",
"combo": 1,
"interfaces": [],
"interfaces": ["contextMenus_Selection"],
"isInfinite": false,
"owner": "user",
"prompt": {
Expand All @@ -22,7 +22,7 @@
"protocol": "https://",
"url": ""
},
"input": "userSelection",
"input": "default",
"model": "Bing",
"output": "default",
"queryObj": {
Expand All @@ -40,11 +40,54 @@
"app": "Earth",
"id": "9d7f7c47eed2b0a5360412873bb909bc"
},
{

"tag": "翻译成中文",
"role": "",
"combo": 1,
"interfaces": ["contextMenus_Selection"],
"isInfinite": false,
"owner": "user",
"prompt": {
"api": {
"url": "",
"protocol": "https://",
"init": {
"method": "POST",
"headers": {
"Content-Type": "application/json"
},
"body": {},
"mode": "cors",
"cache": "default",
"responseType": "text"
},
"isApi": false
},
"input": "default",
"model": "ChatGPT",
"output": "default",
"queryObj": {
"query": "",
"url": "",
"protocol": "https://",
"isQuery": false
},
"temperature": 0.3,
"text": "###相关任务###\n帮我将相关内容翻译成中文。",
"type": "prompt",
"url": ""
},
"version": "",
"app": "",
"id": 1685086230450
},
{
"tag": "内容扩写",
"role": "",
"combo": 1,
"interfaces": [],
"interfaces": ["contextMenus_Selection"],

"isInfinite": false,
"owner": "user",
"prompt": {
Expand All @@ -63,7 +106,9 @@
"protocol": "https://",
"url": ""
},
"input": "userSelection",

"input": "default",

"model": "ChatGPT",
"output": "default",
"queryObj": {
Expand All @@ -73,12 +118,98 @@
"url": ""
},
"temperature": 0.7,
"text": "###相关任务###\n帮我将相关内容进行中文扩写,你需要用以下格式输出:\n<内容扩写>\nxxxx",

"text": "###相关任务###\n帮我将相关内容进行扩写,重点内容不能发生变化。",

"type": "markdown",
"url": ""
},
"version": "0.3.1",
"app": "Earth",
"id": "cd115955d15fcadf0f37fc0cfe24446e"

},
{
"tag": "内容缩写",
"role": "",
"combo": 1,
"interfaces": ["contextMenus_Selection"],
"isInfinite": false,
"owner": "user",
"prompt": {
"api": {
"url": "",
"protocol": "https://",
"init": {
"method": "POST",
"headers": {
"Content-Type": "application/json"
},
"body": {},
"mode": "cors",
"cache": "default",
"responseType": "text"
},
"isApi": false
},
"input": "default",
"model": "ChatGPT",
"output": "default",
"queryObj": {
"query": "",
"url": "",
"protocol": "https://",
"isQuery": false
},
"temperature": 0.7,
"text": "###相关任务###\n帮我将相关内容进行缩写,重点内容不能发生变化。",
"type": "prompt",
"url": ""
},
"version": "",
"app": "",
"id": 1685085978795
},
{
"tag": "内容重写",
"role": "",
"combo": 1,
"interfaces": ["contextMenus_Selection"],
"isInfinite": false,
"owner": "user",
"prompt": {
"api": {
"url": "",
"protocol": "https://",
"init": {
"method": "POST",
"headers": {
"Content-Type": "application/json"
},
"body": {},
"mode": "cors",
"cache": "default",
"responseType": "text"
},
"isApi": false
},
"input": "default",
"model": "ChatGPT",
"output": "default",
"queryObj": {
"query": "",
"url": "",
"protocol": "https://",
"isQuery": false
},
"temperature": 0.3,
"text": "###相关任务###\n帮我将相关内容进行文笔优化,字数差不多,重点内容不能发生变化。",
"type": "prompt",
"url": ""
},
"version": "",
"app": "",
"id": 1685085359057

}
]
Loading

0 comments on commit 5948df4

Please sign in to comment.