11# ChatGPT-YourChatRobot
22
3- > ### NEWS: 现在你可以在qq让GPT用语音回复你啦
4- > - ai画图使用 [ DALL·E-3模型 ] ( https://platform.openai.com/docs/models/dall-e ) , 支持修改style和quality
5- > - 实现ai语音回复功能:使用 [ TTS模型 ] ( https://platform.openai.com/docs/models/tts ) 将gpt的回答转换为语音
6- > - 无需为此功能额外配置apikey, 使用原先的即可
7- > ![ ] ( https://cdn.jsdelivr.net/gh/ashinnotfound/ImageHosting/img/060f61de58ff2bfac9c31eb43935071.jpg )
8- > --- 2023.12.7
3+ > ### NEWS: 新年快乐!!!现在你可以使用第三方GPT服务了🤗
4+ > how to: 修改gpt.baseUrl配置项即可使用第三方apikey
5+ >
6+ > ![ image-20240115114827781 ] ( https://cdn.jsdelivr.net/gh/ashinnotfound/ImageHosting/img/image-20240115114827781.png )
7+ >
8+ > --- 2024.1.15
99
1010## 简介
1111
@@ -28,15 +28,6 @@ qq机器人实现基于[TheoKanning/openai-java](https://github.com/TheoKanning/
2828🌹🌹🌹感谢[ acheong08/ChatGPT] ( https://github.com/acheong08/ChatGPT ) 、[ PlexPt/chatgpt-java] ( https://github.com/PlexPt/chatgpt-java ) 、[ TheoKanning/openai-java] ( https://github.com/TheoKanning/openai-java ) 、[ mamoe/mirai] ( https://github.com/mamoe/mirai.git )
2929和[ wxmbaci/itchat4j-uos] ( https://github.com/wxmbaci/itchat4j-uos ) 🌹🌹🌹
3030
31- ## 原理
32-
33- 使用mirai/itchat登录qq/微信并监听消息->调用openai接口将消息向gpt提问->使用mirai/itchat在qq/微信里回复gpt的回答
34-
35- ai画图采用[ DALL·E模型] ( https://platform.openai.com/docs/models/dall-e )
36- 的[ generation方法] ( https://platform.openai.com/docs/guides/images/generations )
37-
38- ai语音回复使用[ TTS模型] ( https://platform.openai.com/docs/models/tts ) 将gpt的回答转换为语音
39-
4031## 一些特性 or TODO
4132
4233| 功能 | QQ机器人 | 微信机器人 |
@@ -47,20 +38,28 @@ ai语音回复使用[TTS模型](https://platform.openai.com/docs/models/tts)将g
4738| 引用回复 | ✔️ | ❌ |
4839| 使用多apikey | ✔️ | ✔️ |
4940| 重置会话 | ✔️ | ✔️ |
50- | 第三方/免apikey | 计划🥳 | 计划🥳 |
41+ | 第三方GPT | ✔️ | ✔️ |
5142| 网页控制台 | 计划🥳 | 计划🥳 |
5243
44+ ## 原理
45+
46+ 使用mirai/itchat登录qq/微信并监听消息->调用openai接口将消息向gpt提问->使用mirai/itchat在qq/微信里回复gpt的回答
47+
48+ ai画图采用[ DALL·E模型] ( https://platform.openai.com/docs/models/dall-e ) 的[ generation方法] ( https://platform.openai.com/docs/guides/images/generations )
49+
50+ ai语音回复使用[ TTS模型] ( https://platform.openai.com/docs/models/tts ) 将gpt的回答转换为语音
51+
5352### 你可能需要了解:
5453
55- > - 获取apiKey https://platform.openai.com/account/api-keys
54+ > - 获取官方apiKey https://platform.openai.com/account/api-keys
5655> - 向机器人发送 “重置会话” 可以清除会话历史, 可在配置文件里修改指令
5756> - 对话历史溢出时会自动删除较前的会话历史并重新提问
5857> - 可以设置basicPrompt达到具有性格的目的, 如:“接下来在我向你陈述一件事情时, 你只需要回答:“典”。”
5958> - 支持使用多个apiKey。在此情况下, 会优先调用使用次数最少的apiKey, 达到避免同一个api请求过多造成的Http500/503问题的目的
6059> - 偶尔会出现ai画图和语音回复无响应, 请重新登录
6160> - 若出现登录失败请尝试以下操作
6261> - 再试一次?
63- > - 清除缓存(cache文件夹) 更换协议后重试
62+ > - 清除缓存(cache文件夹) 更换qq登录协议后重试
6463> - 清除缓存(cache文件夹) 更换网络环境后重试
6564> - ~~ 骂腾讯风控😡~~
6665
9392 port:
9493
9594gpt:
95+ # 如果你使用了第三方GPT 请修改baseUrl
96+ # (OPENAI官方地址 https://api.openai.com/)
97+ baseUrl: https://api.openai.com/
9698 # 使用的 chat 模型 如gpt-3.5-turbo/gpt-4 (https://platform.openai.com/docs/models/models)
9799 model: gpt-3.5-turbo
98100 # 最大token限制 越多的token意味着越多的花费(gpt-3.5-turbo上限为4096token, gpt-4则为8192)
@@ -158,6 +160,14 @@ tips:机器人响应速度与你的网络环境挂钩。
158160
159161<summary ></summary >
160162
163+ ### v3.9.1 (Jan 15, 2024)
164+
165+ - 增加对第三方GPT服务的支持
166+ - qq机器人基于[ TheoKanning/openai-java] ( https://github.com/TheoKanning/openai-java )
167+ 和[ mamoe/mirai] ( https://github.com/mamoe/mirai.git )
168+ - 微信机器人基于[ TheoKanning/openai-java] ( https://github.com/TheoKanning/openai-java )
169+ 和[ wxmbaci/itchat4j-uos] ( https://github.com/wxmbaci/itchat4j-uos )
170+
161171### v3.9 (DEC 7, 2023)
162172
163173- ai画图使用[ DALL·E-3模型] ( https://platform.openai.com/docs/models/dall-e ) , 支持修改style和quality
0 commit comments