Giter Site home page Giter Site logo

liyf1 / chatgpt-plus Goto Github PK

View Code? Open in Web Editor NEW
61.0 2.0 3.0 283 KB

为chatgpt接入手脚,轻松集成各种插件如联网画图总结天气查询等等,已内置10几种插件。支持多模态,包括图像声音输入

License: Apache License 2.0

Java 98.25% Dockerfile 0.03% HTML 1.72%
chatgpt chatgptplus

chatgpt-plus's Introduction

chatgpt-plus

To English Doc -> English Doc

📖 项目简介

ChatGPT自定义插件的客户端

此项目是 Open AI ChatGPT 的plus满血版本。在官方chatgpt的基础上提供了一些额外的拓展能力,比如当日新闻天气油价股市查询等等,只有想不到没有做不到。项目基于OPEN AI的函数式调用开发,目前预置了一些插件(后续在不断更新),同时支持开发者加入自己的自定义插件。项目支持流式和非流式调用两种方式。

🚩 特性

非流式输出:

image image

流式输出:

image

自动决策

根据请求内容,内置决策模块自动识别需要使用的插件,无需指定对应的插件名,支持多个插件同时使用,例如:将北京的天气发送给[email protected]

目前已内置插件:

  • [✅] 当前时间查询
  • [✅] 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 = [email protected]
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启动

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
      - [email protected]
      - 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

🙏 鸣谢

项目中依赖了大佬的代码,在此表示感谢🌹:

chatgpt-plus's People

Contributors

liyf0001 avatar liyf1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

chatgpt-plus's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.