chatgpt-for-chatbot-wechat

command module
v1.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

ChatGPT For ChatBot WeChat

快速将 ChatGPT 接入微信,基于 OpenAI 官方接口,作为私人助理或者微信群助理(注意合理使用)

本项目衍生于 go-zoox/chatgpt-for-chatbot-feishu,欢迎点 Star

预览

功能支持

  • 支持长对话,自动联系上下文
  • 支持私人对话
  • 支持群聊
    • 支持 @ 机器人回复
    • 也支持命令(/chatgpt)触发,格式:/chatgpt 你的问题
  • 支持二次开发,快速接入企业现有应用
    • Go 开发框架

项目特点

部署方案

一键部署(推荐)
# 基于服务端管理框架 Zmicro,自动安装缺失依赖,使用 Zmicro Service,底层容器使用 Docker
# 执行下面脚本,并按提示操作,填写微信 APP ID/Secret 和 OpenAI/ChatGPT API Key
$ curl -o- https://raw.githubusercontent.com/zmicro-design/service-chatgpt-for-chatbot-wechat/master/install | bash
二进制
# 安装服务器管理框架 Zmicro
$ curl -o- https://raw.githubusercontent.com/zcorky/zmicro/master/install | bash

# 安装 chatgpt-for-chatbot-wechat
$ zmicro package install chatgpt-for-chatbot-wechat

# 准备 OpenAI/ChatGPT API Key
$ export CHATGPT_API_KEY=<YOUR_CHATGPT_API_KEY>

# 运行
$ zmicro chatgpt-for-chatbot-wechat
Docker Compose
# docker-compose.yaml
version: "3.7"

services:
  chatgpt-for-chatbot-wechat:
  image: whatwewant/chatgpt-for-chatbot-wechat:latest
  environment:
    CHATGPT_API_KEY: "<YOUR_CHATGPT_API_KEY>"
# 启动
$ docker-compose up -d
二次开发
# 支持 Go-Zoox 中间件
更多交流

可以创建 Issue 或者加微信,备注来自:ChatGPT-For-ChatBot-WeChat,进入微信群沟通

相关资源

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址