1 Star 3 Fork 2

superlistudy / chatGPT接入qq聊天框

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
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.

About

实现qq对话人工智能回复 expand collapse
Java
MIT
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
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

Search