You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. ## 插件描述
  2. 一个能让chatgpt联网,搜索,数字运算的插件,将赋予强大且丰富的扩展能力
  3. 使用该插件需在对话内容前加$tool
  4. ### 本插件所有工具同步存放至专用仓库:[chatgpt-tool-hub](https://github.com/goldfishh/chatgpt-tool-hub)
  5. ## 使用说明
  6. 使用该插件后将默认使用4个工具, 无需额外配置长期生效:
  7. ### 1. python_repl
  8. ###### python解释器,使用它来解释执行python指令
  9. ### 2. requests
  10. ###### 往往用来获取某个网站具体内容
  11. ### 3. terminal
  12. ###### 在你运行的电脑里执行shell命令
  13. ### 4. meteo-weather
  14. ###### 回答你有关天气的询问, 本工具使用了[meteo open api](https://open-meteo.com/)
  15. ## 使用本插件对话(prompt)技巧
  16. ### 1. 有指引的询问
  17. #### 例如:
  18. - 总结这个链接的内容 https://www.36kr.com/p/2186160784654466
  19. - 使用Terminal执行curl cip.cc
  20. - 借助python_repl和meteo-weather获取深圳天气情况
  21. ### 2. 使用搜索引擎工具
  22. - 如果有这个工具就能让chatgpt在不理解某个问题时去使用
  23. ## 其他插件
  24. ###### 除上述以外还有其他插件,比如搜索联网、数学运算、百科、新闻需要获取api-key,
  25. ###### 由于这些插件使用方法暂时还在整理中,如果你不熟悉请不要尝试使用这些工具
  26. ## config 配置说明
  27. ###### 一个例子
  28. ```json
  29. {
  30. "tools": ["wikipedia"],
  31. "kwargs": {
  32. "top_k_results": 2
  33. }
  34. }
  35. ```
  36. - `tools`:本插件初始化时加载的工具, 目前可选集:["wikipedia", "wolfram-alpha", "google-search", "news-api"]
  37. - `kwargs`:工具执行时的配置,一般在这里存放api-key
  38. ## 备注
  39. - 请不要使用本插件做危害他人的事情,请自行判断本插件输出内容的真实性
  40. - 未来一段时间我会实现一些有意思的工具,比如stable diffusion 中文prompt翻译、cv方向的模型推理,欢迎有想法的朋友关注,一起扩展这个项目