Giter VIP home page Giter VIP logo

dingtalk-chatgpt-node's Introduction

chatGPT钉钉机器人node版本

使用 nestjs 框架和 chatgpt-api , 有web和openai key (chatgpt-3.5-turbo)两种模式,两种模式对比 ,web模式支持上下文聊天

条件要求

  1. 创建钉钉机器人如何创建机器人
  2. 有公网IP的服务器
  3. node v18.16.0 版本
  4. 有chatgpt账号或者session(此项目 pandora 有免费体验账号 https://chat-shared1.zhile.io/shared.html)
  5. 使用官方key模式需要有chatgpt key(付费,需要绑定银行卡,可去某宝找,depay不行了),需要外网服务器

快速开始

  1. 克隆本仓库

    git clone https://github.com/XueMeijing/dingtalk-chatgpt-node.git
    
  2. 安装依赖

    pnpm install
  3. 填写 src/app.config.ts 内相关的key

    APP_SECRET、GPT_SESSION、GPT_KEY

  4. 运行

    pnpm start
  5. 使用pm2监控(可选)

    pnpm start或者pnpm run build之后,会生成dist文件

    pm2 start dist/main.js
    
  6. 查看输出

    pm2 logs
    
  7. 钉钉机器人开发管理配置地址为(服务器防火墙记得开3000端口)

    http://<YOUR IP>:3000/chatgpt/unofficial
    

使用

  • 默认使用web版本 chatgptunofficialproxyapi ,通过 @zhile-io 提供的链接代理请求,所以你的请求信息可能被第三方看到
  • 请求前加/official可使用官方版本 chatgptapi
  • 请求前加/reset可重置web版本的聊天上下文

image

image

dingtalk-chatgpt-node's People

Contributors

xuemeijing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

logep

dingtalk-chatgpt-node'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.