To English Doc -> English Doc
ChatGPT自定义插件的客户端
此项目是 Open AI ChatGPT 的plus满血版本。在官方chatgpt的基础上提供了一些额外的拓展能力,比如当日新闻天气油价股市查询等等,只有想不到没有做不到。项目基于OPEN AI的函数式调用开发,目前预置了一些插件(后续在不断更新),同时支持开发者加入自己的自定义插件。项目支持流式和非流式调用两种方式。
![image](https://private-user-images.githubusercontent.com/49024327/250942424-3bc7589c-3324-4dcd-addf-3de53aa9313f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI1MDc5NTcsIm5iZiI6MTcyMjUwNzY1NywicGF0aCI6Ii80OTAyNDMyNy8yNTA5NDI0MjQtM2JjNzU4OWMtMzMyNC00ZGNkLWFkZGYtM2RlNTNhYTkzMTNmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODAxVDEwMjA1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA2YWNmZjA0ZDhmODc2OTE1NWFiNzMwZjNjODE4NTE1NWEzMzA3NDQ1OTI0NWYxZTU4ZTk2MDNkMzg1MjdjZmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.c-efpUj0sWnddvCHKfGlTau8HFmN1F4E8Z0juxfg13Y)
![image](https://private-user-images.githubusercontent.com/49024327/250942459-1e91215e-8263-4135-a21e-ca6e9dc40c81.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI1MDc5NTcsIm5iZiI6MTcyMjUwNzY1NywicGF0aCI6Ii80OTAyNDMyNy8yNTA5NDI0NTktMWU5MTIxNWUtODI2My00MTM1LWEyMWUtY2E2ZTlkYzQwYzgxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODAxVDEwMjA1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc3YzJkOWRiZDQ2NmM3MmJkZTUzNGUwYzJmZDYwNDZhNzVlYWZkZDAzYTM4MmRiOGMyZGYwNDU0YWI1OWIzMDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.klfm__iHnfMLAhuvyb-Kagm47vu4kwcY9JgqWiJ_jmI)
![image](https://private-user-images.githubusercontent.com/49024327/250942365-9e6edb67-92ac-4fbe-8371-66bffb15bcc6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI1MDc5NTcsIm5iZiI6MTcyMjUwNzY1NywicGF0aCI6Ii80OTAyNDMyNy8yNTA5NDIzNjUtOWU2ZWRiNjctOTJhYy00ZmJlLTgzNzEtNjZiZmZiMTViY2M2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODAxVDEwMjA1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkwYmM4MjBlM2M0NTAzZTM5MDE4YTU3OTUxMWUxZjlkYWYyNTRjNDlkMTYxMmJhMTEyMWY3NzQ0OWY1NjNiZWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ApW0sQJrVUkBJyIficR49JGIQCFEsxuNOVOBOvjFYHk)
根据请求内容,内置决策模块自动识别需要使用的插件,无需指定对应的插件名,支持多个插件同时使用,例如:将北京的天气发送给4214142@gmail.com
- [✅] 当前时间查询
- [✅] mid-journey图片生成
- [✅] 城市天气查询
- [✅] 新闻查询
- [✅] 邮件发送
- [✅] 微博热搜
- [✅] 百度搜索
- [✅] 百度百科
- [✅] 谷歌搜索
- [✅] 网页链接读取
- [✅] AI每日技术资讯
- [✅] DallE3图片生成
- [✅] 每日早报
- [✅] 摸鱼日报
- [todo] B站视频总结
- [todo] 知识库引入,支持不同问题回复指定答案
- 持续更新中
项目环境要求:jdk17+
## 引用了mid-journey proxy项目,需要单独启动mid-journey项目,将启动后地址配入进去
mj.service.url = http://ip:port
## chatgpt api key
chatgpt.api.key = sk-xxxxx
## 发送邮件的配置信息
mail.host = smtp.xx.com
mail.port = 465
mail.username = xxxx@xx.com
mail.password = xxxxxxx
mail.subject = AI Chatbot
## 天气查询使用了百度智能云的接口,需要申请百度智能云的账号,然后创建应用,获取accessKey和secretKey,https://apis.baidu.com/store/detail/d031401a-4081-4572-8dd7-aca64223197e
baidu.weather.accessKey =
baidu.weather.secretKey =
## 新闻查询使用了聚合数据的接口,需要申请聚合数据的账号,然后创建应用,获取key,https://www.juhe.cn/docs/api/id/235
juhe.news.key =
## 项目中使用了动态IP获取实时数据,如需使用百度微博等功能需要配置 ,我使用的产品https://www.kuaidaili.com/doc/product/dps/#fetchtypeip
proxy.ip.signature =
proxy.ip.secretId =
## 接口的权限验证,配置后请求中必须带有token,否则会认证失败
chatgpt.api.token = 123456
server.port = 15600
docker pull uswccr.ccs.tencentyun.com/liyf/images:chatgpt-plus-v1.0 或者 docker pull a419820659/liyf007:chatgpt-plus-v1.0
version: '3'
services:
myapp:
image: chatgpt-plus-v1.0
ports:
- 15600:15600
environment:
- mj.service.url=http://xxxxx:8080
- chatgpt.api.key=sk-32131321ky8ph1231B2xxxxxvUqBX9
- mail.host=smtp.qq.com
- mail.port=465
- mail.username=xsds@qq.com
- mail.password=2312313
- mail.subject=AI Chatbot
- baidu.weather.accessKey=sds
- baidu.weather.secretKey=sds
- juhe.news.key=ds
- proxy.ip.signature=dsds
- proxy.ip.secretId=dsds
- chatgpt.api.token=123123
项目中依赖了大佬的代码,在此表示感谢🌹:
- OpenAi:https://openai.com/
- chatgpt-java: https://github.com/Grt1228/chatgpt-java
- midjourney-proxy: https://github.com/novicezk/midjourney-proxy 项目内非代码直接依赖,如需图片生成自己单独启动该项目