Giter Site home page Giter Site logo

coze's Introduction

插件简介

这个插件是用于连接cow项目到coze服务,通过coze-discord-proxy,以免费获得ChatGPT-4.0和DALL·E 3的功能。

安装和配置步骤

  1. 安装Git

    • 安装命令:
      sudo yum install git -y
      
    • 进入插件文件夹:
      cd /home/wechat/chatgpt-on-wechat/plugins/   # 使用实际路径
      
    • 克隆仓库到plugins 文件夹:
      git clone https://github.com/MasterKeee/coze.git
      
  2. 配置插件

    • 进入coze 文件夹,找到 config.json.template 文件,复制并重命名为 config.json

      cp config.json.template config.json
      
    • 编辑 config.json

      vi config.json
      

      填入相应内容:

      {
        "apiKey": "xxxxx",  // 在coze-discord-proxy的docker-compose.yml中找到PROXY_SECRET
        "apiUrl": "xxxxx/v1/chat/completions",  // 在coze-discord-proxy的docker-compose.yml中找到PROXY_URL
        "channelId": "xxxxx",  // 在coze-discord-proxy的docker-compose.yml中找到CHANNEL_ID
        "createImgPrefix":""   //画图前缀
      }
    • 保存并退出编辑器:按 Esc 键,输入 :wq

  3. 配置cow config.json

    • 返回插件根目录并编辑:
      cd /home/wechat/chatgpt-on-wechat   # 使用实际路径
      vi config.json
      
    • 找到并修改 "image_create_prefix": ["画"] 为其他与本插件画图前缀不同的内容。
  4. 运行项目

    • 启动项目:
      nohup python3 app.py & tail -f nohup.out
      

使用方法

  • 发送命令如“画一个太阳”,即可触发DALL·E 3插件生成图片。

额外说明

  • 已有coze-discord-proxy配置。
  • 需要复制并修改 config.json.template 文件,填入相关参数。
  • 若要避免冲突,需修改cow项目根目录下的 config.json 文件中画图前缀(image_create_prefix)。
  • 使用#reloadp命令可扫描并加载新插件。

交流群

  • Telegram 交流群加入群组
  • 微信公众号基基科技说 可查看插件效果。
  • QQ 交流群加入群组

请按以上步骤操作,如有疑问,随时提问。

coze's People

Contributors

masterke2003 avatar

Stargazers

 avatar  avatar zoecsoulkey avatar wjsz avatar XZY avatar Stone Lyu avatar Qindaier avatar  avatar  avatar Anoxia.Liu avatar luoshui avatar Joe avatar  avatar Johnson Schrodinger avatar  avatar  avatar Cookpro avatar  avatar  avatar  avatar  avatar Doutian bao avatar King.John avatar Shuo Lv avatar Zelma Treutel avatar

Watchers

 avatar

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.