1 Star 3 Fork 2

superlistudy / chatGPT接入qq聊天框

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

chatGPT接入qq聊天框

首先我是参照:很感谢这位大佬https://github.com/PlexPt/chatgpt-java

1.注册自己的账号

访问https://chat.openai.com/auth/login

具体教程:参照优弧大佬https://juejin.cn/post/7173447848292253704

2.拉取代码

这里需要一点点Java前置知识

gitee地址:https://gitee.com/superligq/chat-gpt-access-to-qq-chat-box.git

拉取代码后进行pom文件下载

sessionToken获取

  1. 通过 https://chat.openai.com/chat 登录。
  2. 打开浏览器开发者工具,切换到 Application 标签页。
  3. 在左侧的 Storage - Cookies 中找到 __Secure-next-auth.session-token 一行并复制其值

成功后先不着急启动继续配置go-cqhttp

3.配置go-cqhttp

下载go-cqhttp: 链接https://github.com/Mrs4s/go-cqhttp/releases/download/v1.0.0-rc3/go-cqhttp_windows_386.exe 下载成功后解压得到go-cqhttp_windows_386.exe

在go-cqhttp_windows_386.exe路径下,文件管理输入cmd启动

用自己qq扫码

例如:F:\openAl>go-cqhttp_windows_386.exe点击enter

文件目录生成config.yml文件

修改config.yml的最后为

  - ws:
    正向WS服务器监听地址

    address: 127.0.0.1:9099
    middlewares:
      <<: *default # 引用默认中间件

4.启动Java项目

点击src--->main--->java---->com---->github---->plexpt------>ws------>Client中的Main方法

MIT License Copyright (c) 2022 plex Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

实现qq对话人工智能回复 展开 收起
Java
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/superligq/chat-gpt-access-to-qq-chat-box.git
git@gitee.com:superligq/chat-gpt-access-to-qq-chat-box.git
superligq
chat-gpt-access-to-qq-chat-box
chatGPT接入qq聊天框
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891