Giter VIP home page Giter VIP logo

chatgptwechatbot's Introduction

ChatGptWeChatBot

介绍

基于openai chatgpt的微信机器人,支持key轮询,openai绘图,sd绘图,私聊群聊,自定义角色等。

运行环境

平台:Windows/liunx

python版本>=3.8.1<4.0

软件架构

本项目使用了itchat的库,以及langchain作为主要对接。

  • admin
    • admin.py 管理员指令
  • config
    • config copy.yaml 用户配置文件
    • config.py 读取配置文件
    • log.py 日志配置文件
  • docs 文档加载
  • img 图片绘画存放位置
  • logs 日志
  • lib 依赖包
  • plugins 功能插件
  • utils 常用功能
  • wxbot.py 微信机器人主要实现

安装教程

  1. 安装python >=3.8.1<4.0 版本
  2. 进入项目目录chatgptWxBot
  3. 控制台安装需要的库 pip install -r requirements.txt
  4. 运行app.py文件

使用说明

  1. 先更改config/config copy.yaml文件名重命名为config.yaml
  2. 打开config.yaml配置文件,将管理员微信名,openai key填写上即可
  3. 群聊需艾特机器人 输入#help查看使用教程

使用截图

加入群聊

加入群聊的好处:及时通知危险资讯,更新内容,解决问题

img

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

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.