Skip to content

公众号接入chatGPT,只需要有公众账号、chatGPT账号、通过配置启动,开箱即用。 token计算,自动组合聊天上下文。天气预报/天气预警推送功能

Notifications You must be signed in to change notification settings

zhao458114067/gpt-wechat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

代码介绍

  • The JVM level was changed from '1.8'
  • 只需要自己申请公众号、chatGPT账号、通过配置启动,开箱即用
  • token值动态计算,自动组合用户聊天上下文
  • 天气预报/天气预警推送功能

开始

  • 需要一台有公网的服务器,不然腾讯消息没地方转,或者 使用 https://natapp.cn 进行内网穿透,最好申请一台在国外的服务器, 厂商挺多的,国内还都很贵

1、首先去微信申请一个公众号,或者测试号

申请地址:https://mp.weixin.qq.com/

申请之后需要在公众号的基本配置中进行一些配置

img_1.png

无脑配就行,主要是服务器地址填http://你的域名/v1/gpt/wechat/event

域名可以填natapp生成的域名

2、还需要申请ChatGPT的key

申请地址:https://platform.openai.com/account/api-keys

接着将申请到的微信配置信息以及ChatGPT的key填入到application.yaml当中,启动即可

img.png

实现效果

img.png

About

公众号接入chatGPT,只需要有公众账号、chatGPT账号、通过配置启动,开箱即用。 token计算,自动组合聊天上下文。天气预报/天气预警推送功能

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages