Skip to content

Commit

Permalink
Merge pull request #21 from AGIUI/dev0.3.1-shadow
Browse files Browse the repository at this point in the history
Dev0.3.1 shadow
  • Loading branch information
shadowcz007 authored May 24, 2023
2 parents 73da526 + fca5170 commit b0914d6
Show file tree
Hide file tree
Showing 32 changed files with 2,762 additions and 836 deletions.
48 changes: 34 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Earth

[![](/public/icon-128.png)](http://player.bilibili.com/player.html?aid=271181111&bvid=BV1zc411P7vS&cid=1132599638&page=1)

Artificial General Intelligence user interface
普惠AGI交互界面,让更多人可以实现自己的AGI交互界面。

Expand All @@ -8,13 +10,13 @@ AGI-UI的使命是改善AGI在PC、Web、Mobile、XR、机器人等领域的人
> 作为AGIUI的首个开源项目,Earth是一个浏览器插件,支持常见的浏览器:Chrome, Firefox, Safari, Edge, Brave等。

[![](/public/icon-128.png)](http://player.bilibili.com/player.html?aid=271181111&bvid=BV1zc411P7vS&cid=1132599638&page=1)
[![](/examples/demo01.png)](/examples/demo01.mp4)
🔝演示视频


## 如何使用?

安装步骤,先打开网址下载 https://github.com/AGIUI/Earth/releases/tag/v0.2.2
安装步骤,先打开网址下载 https://github.com/AGIUI/Earth/releases/tag/v0.3.1

Chrome:

Expand Down Expand Up @@ -61,31 +63,29 @@ npm run build [browser]
## combo的数据示例
```
[{
"checked": true,
"interfaces": [],
"combo": 3,
"id": "1881e7d386e",
"isInfinite": false,
"owner": "user",
"prompt": {
"bindCurrentPage": false,
"isApi": false,
"isNextUse": true,
"input":'default',
"output": 'default',
"agent":'default'
"api": {},
"queryObj": {
"isQuery": false,
"query": "",
"url": ""
},
"text": "给我一个科幻故事,和植物、机器人、爱情有关",
"url": ""
},
"prompt2": {
"bindCurrentPage": false,
"isApi": false,
"isNextUse": false,
"text": "总结下"
temperature: 0.6,
model: 'ChatGPT',
},
"prompt3": {
"text": "嗯"
"text": "嗯",
temperature: 0.6,
model: 'ChatGPT',
},
"role": "",
"tag": "科幻故事"
Expand All @@ -98,6 +98,26 @@ v0.2.0

新增绑定当前网页、输出格式,combo编辑器导入导出,提供示例

v0.3.1
- combo数据结构调整及编辑器,新增:interfaces(home、contextMenus、showInChat)、input、output

- combo支持单个导出

- API节点



## TODO

- PDF节点:读取、创建、阅读器

- PPT节点:读取、创建

- 高亮网页信息节点(实验功能)


## 社区
[discord](https://discord.gg/7YVVhEQExu)


## 相关资料:
Expand Down
4 changes: 3 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
}],
"api": "https://api.openai.com",
"displayApiName": "openai",
"models": ["gpt-3.5-turbo"],
"models": [
"gpt-3.5-turbo"
],
"model": "gpt-3.5-turbo",
"canImport": true
}
Expand Down
Binary file added examples/demo01.mp4
Binary file not shown.
Binary file added examples/demo01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
260 changes: 260 additions & 0 deletions examples/my-combo-1684478981480.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,260 @@
[{
"checked": false,
"combo": 3,
"id": "18822914d15",
"isInfinite": false,
"owner": "user",
"prompt": {
"output": "isNextUse",
"input": "isQuery",
"model": "ChatGPT",
"queryObj": {
"isQuery": true,
"query": ".weibo-main .weibo-text",
"url": "m.weibo.cn/search?containerid=100103type%3D1%26q%3D%23AGIUI"
},
"temperature": 0.14,
"text": "你好,你是谁?",
"url": ""
},
"prompt2": {
"output": "isNextUse",
"input": "default",
"model": "ChatGPT",
"queryObj": {
"isQuery": false,
"query": "",
"url": ""
},
"temperature": 0.25,
"text": "你现在是一位著名的科幻作家,写过《流浪地球》的大作,提取关键信息,用中文创作一个科幻故事",
"url": ""
},
"prompt3": {
"output": "default",
"input": "default",
"model": "ChatGPT",
"queryObj": {
"isQuery": false,
"query": "",
"url": ""
},
"temperature": 0.13,
"text": "作为读者,根据这个故事,用中文写出你的读后感",
"url": ""
},
"role": "",
"tag": "根据微博内容创作科幻故事"
},
{
"checked": false,
"combo": 3,
"id": "1882847a340",
"isInfinite": false,
"owner": "user",
"prompt": {
"output": "isNextUse",
"input": "isQuery",
"model": "ChatGPT",
"queryObj": {
"isQuery": true,
"query": ".weibo-text",
"url": "m.weibo.cn"
},
"temperature": 0.23,
"text": "7",
"url": ""
},
"prompt2": {
"output": "isNextUse",
"input": "default",
"model": "ChatGPT",
"queryObj": {
"isQuery": false,
"query": "",
"url": ""
},
"temperature": 0.13,
"text": "提取人物、关键事件,虚构一个故事,你现在是记者,请编写中文访谈提纲",
"url": ""
},
"prompt3": {
"output": "default",
"input": "default",
"model": "ChatGPT",
"queryObj": {
"isQuery": false,
"query": "",
"url": ""
},
"temperature": 0.14,
"text": "你现在是技术专家,为这个访谈提纲增加科技的话题,可以包括人工智能、元宇宙等,用中文写一个访谈的概要和提纲",
"url": ""
},
"role": "",
"tag": "获取微博最新消息,写一个访谈提纲"
},
{
"checked": false,
"combo": 2,
"id": "1882cf38f60",
"isInfinite": true,
"owner": "user",
"prompt": {
"output": "isNextUse",
"input": "default",
"model": "ChatGPT",
"queryObj": {
"isQuery": false,
"query": "",
"url": ""
},
"temperature": 0.6,
"text": "现在你是顶级设计师,对方也是顶级设计师,你会根据上文内容阐述你对设计的理解。如果没有上文,你可以发起交流。",
"url": ""
},
"prompt2": {
"output": "isNextUse",
"input": "default",
"model": "Bing",
"queryObj": {
"isQuery": false,
"query": "",
"url": ""
},
"temperature": 0.6,
"text": "现在你是顶级设计师,对方也是顶级设计师,你会根据上文内容阐述你对设计的理解。",
"url": ""
},
"role": "",
"tag": "Bing和ChatGPT聊天"
},
{
"checked": true,
"combo": 4,
"id": "188321b6c7b",
"isInfinite": false,
"owner": "user",
"prompt": {
"output": "isNextUse",
"input": "default",
"model": "ChatGPT",
"queryObj": {
"isQuery": false,
"query": "",
"url": ""
},
"temperature": 0.9,
"text": "按照新闻、体育、汽车、房产、旅游、教育、时尚、科技、财经、娱乐、综合,这几种类别,分类文章类别",
"url": ""
},
"prompt2": {
"output": "isNextUse",
"input": "bindCurrentPage",
"model": "ChatGPT",
"queryObj": {
"isQuery": false,
"query": "",
"url": ""
},
"temperature": 0.9,
"text": "根据文章的信息,提取关键词和文章摘要,用中文写",
"url": ""
},
"prompt3": {
"output": "isNextUse",
"input": "default",
"model": "ChatGPT",
"queryObj": {
"isQuery": false,
"query": "",
"url": ""
},
"temperature": 0.8,
"text": "用中文提出3个启发人的问题,按照markdown格式输出",
"url": ""
},
"prompt4": {
"output": "default",
"input": "default",
"model": "ChatGPT",
"queryObj": {
"isQuery": false,
"query": "",
"url": ""
},
"temperature": 0.9,
"text": "按照文章类别、关键词、摘要、问题,用中文,按照markdown格式输出",
"url": ""
},
"role": "",
"tag": "阅读理解"
},
{
"checked": false,
"combo": 1,
"id": "18832a0e3be",
"isInfinite": false,
"owner": "user",
"prompt": {
"api": {
"isApi": false,
"url": ""
},
"output": "isNextUse",
"input": "default",
"model": "ChatGPT",
"queryObj": {
"isQuery": false,
"query": "",
"url": ""
},
"temperature": 0.1,
"text": "7",
"url": ""
},
"role": "",
"tag": "7"
},
{
"checked": false,
"combo": 2,
"id": "18832c2b1af",
"isInfinite": false,
"owner": "user",
"prompt": {
"api": {
"isApi": false,
"url": ""
},
"input": "bindCurrentPage",
"model": "ChatGPT",
"output": "markdown",
"queryObj": {
"isQuery": false,
"query": "",
"url": ""
},
"temperature": 0.3,
"text": "1"
},
"prompt2": {
"api": {
"isApi": false,
"url": ""
},
"input": "bindCurrentPageHTML",
"model": "Bing",
"output": "translate-zh",
"queryObj": {
"isQuery": false,
"query": "",
"url": ""
},
"temperature": 0.6,
"text": "77"
},
"role": "",
"tag": "1"
}
]
Loading

0 comments on commit b0914d6

Please sign in to comment.