Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

shengbox/wechatbot

Repository files navigation

wechatbot

最近chatGPT异常火爆,本项目可以将个人微信化身GPT机器人, 项目基于openwechat 开发。

Release Github stars Forks

目前实现了以下功能

  • 提问增加上下文,更接近官网效果
  • 机器人群聊@回复
  • 机器人私聊回复
  • 好友添加自动通过

使用前提

  • (削除) 目前只支持在windows上运行因为需要弹窗扫码登录微信,后续会支持linux (削除ここまで) 已支持
  • 有openai账号,并且创建好api_key,注册事项可以参考此文章
  • 微信必须实名认证。

注意事项

  • 项目仅供娱乐,滥用可能有微信封禁的风险,请勿用于商业用途。
  • 请注意收发敏感信息,本项目不做信息过滤。

快速开始

非技术人员请直接下载release中的压缩包 ,解压运行。

# 获取项目
git clone https://github.com/869413421/wechatbot.git
# 进入项目目录
cd wechatbot
# 复制配置文件
copy .env-sample .env
# 启动项目
go run main.go

配置文件说明

# openai api key
api_key= ""
# openai接口地址,也可以是代理地址
base_URL= "https://api.openai.com/v1"
# 自动通过好友
auto_pass= true
# 会话超时时间
session_timeout= 60s
# prompt中sysem的角色设定
prompt.system= "You are a helpful assistant."
functions.json文件格式参照openai接口中functions的定义,api为实际请求api的地址,为了方便让AI理解,接口名称和参数的说明尽量写的详细

使用示例

向机器人发送我要问下一个问题,清空会话信息。

私聊

群聊@回复

添加微信(备注: wechabot)进群交流

如果二维码图片没显示出来,请添加微信号 huangyanming681925

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /