Skip to content

Commit

Permalink
plugin(tool) update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
goldfishh committed Mar 30, 2023
1 parent bf02a59 commit 8da362d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions plugins/tool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,25 @@

### 4. meteo-weather
###### 回答你有关天气的询问, 本工具使用了[meteo open api](https://open-meteo.com/)

注:该工具需提供时间,地点信息,且获取的数据不一定准确

## 使用本插件对话(prompt)技巧
### 1. 有指引的询问
#### 例如:
- 总结这个链接的内容 https://www.36kr.com/p/2186160784654466
- 使用Terminal执行curl cip.cc
- 借助python_repl和meteo-weather获取深圳天气情况
- 使用Terminal执行curl cip.cc
- 使用python查询今天日期

### 2. 使用搜索引擎工具
- 如果有这个工具就能让chatgpt在不理解某个问题时去使用
- 如果有搜索工具就能让chatgpt获取到你的未传达清楚的上下文信息,chatgpt不知道你的地理位置,现在时间等,所以不可能给你正确回答


## 其他插件
###### 除上述以外还有其他插件,比如搜索联网、数学运算、百科、新闻需要获取api-key,
###### 由于这些插件使用方法暂时还在整理中,如果你不熟悉请不要尝试使用这些工具


## config 配置说明
## config.json 配置说明
###### 一个例子
```json
{
Expand All @@ -45,10 +45,11 @@
}
}
```
该文件不创建也能使用本tool
- `tools`:本插件初始化时加载的工具, 目前可选集:["wikipedia", "wolfram-alpha", "google-search", "news-api"]
- `kwargs`:工具执行时的配置,一般在这里存放api-key


## 备注
- 请不要使用本插件做危害他人的事情,请自行判断本插件输出内容的真实性
- 虽然我会有意加入一些限制,但请不要使用本插件做危害他人的事情,请提前了解清楚某些内容是否会违反相关规定,建议提前做好过滤
- 未来一段时间我会实现一些有意思的工具,比如stable diffusion 中文prompt翻译、cv方向的模型推理,欢迎有想法的朋友关注,一起扩展这个项目
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ wechaty_puppet>=0.4.23
chardet>=5.1.0
SpeechRecognition
tiktoken>=0.3.2
chatgpt_tool_hub>=0.2.3
chatgpt_tool_hub>=0.2.5

0 comments on commit 8da362d

Please sign in to comment.