1
1
# ChatGPT-YourChatRobot
2
2
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
9
9
10
10
## 简介
11
11
@@ -28,15 +28,6 @@ qq机器人实现基于[TheoKanning/openai-java](https://github.com/TheoKanning/
28
28
🌹🌹🌹感谢[ 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 )
29
29
和[ wxmbaci/itchat4j-uos] ( https://github.com/wxmbaci/itchat4j-uos ) 🌹🌹🌹
30
30
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
-
40
31
## 一些特性 or TODO
41
32
42
33
| 功能 | QQ机器人 | 微信机器人 |
@@ -47,20 +38,28 @@ ai语音回复使用[TTS模型](https://platform.openai.com/docs/models/tts)将g
47
38
| 引用回复 | ✔️ | ❌ |
48
39
| 使用多apikey | ✔️ | ✔️ |
49
40
| 重置会话 | ✔️ | ✔️ |
50
- | 第三方/免apikey | 计划🥳 | 计划🥳 |
41
+ | 第三方GPT | ✔️ | ✔️ |
51
42
| 网页控制台 | 计划🥳 | 计划🥳 |
52
43
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
+
53
52
### 你可能需要了解:
54
53
55
- > - 获取apiKey https://platform.openai.com/account/api-keys
54
+ > - 获取官方apiKey https://platform.openai.com/account/api-keys
56
55
> - 向机器人发送 “重置会话” 可以清除会话历史, 可在配置文件里修改指令
57
56
> - 对话历史溢出时会自动删除较前的会话历史并重新提问
58
57
> - 可以设置basicPrompt达到具有性格的目的, 如:“接下来在我向你陈述一件事情时, 你只需要回答:“典”。”
59
58
> - 支持使用多个apiKey。在此情况下, 会优先调用使用次数最少的apiKey, 达到避免同一个api请求过多造成的Http500/503问题的目的
60
59
> - 偶尔会出现ai画图和语音回复无响应, 请重新登录
61
60
> - 若出现登录失败请尝试以下操作
62
61
> - 再试一次?
63
- > - 清除缓存(cache文件夹) 更换协议后重试
62
+ > - 清除缓存(cache文件夹) 更换qq登录协议后重试
64
63
> - 清除缓存(cache文件夹) 更换网络环境后重试
65
64
> - ~~ 骂腾讯风控😡~~
66
65
93
92
port:
94
93
95
94
gpt:
95
+ # 如果你使用了第三方GPT 请修改baseUrl
96
+ # (OPENAI官方地址 https://api.openai.com/)
97
+ baseUrl: https://api.openai.com/
96
98
# 使用的 chat 模型 如gpt-3.5-turbo/gpt-4 (https://platform.openai.com/docs/models/models)
97
99
model: gpt-3.5-turbo
98
100
# 最大token限制 越多的token意味着越多的花费(gpt-3.5-turbo上限为4096token, gpt-4则为8192)
@@ -158,6 +160,14 @@ tips:机器人响应速度与你的网络环境挂钩。
158
160
159
161
<summary ></summary >
160
162
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
+
161
171
### v3.9 (DEC 7, 2023)
162
172
163
173
- ai画图使用[ DALL·E-3模型] ( https://platform.openai.com/docs/models/dall-e ) , 支持修改style和quality
0 commit comments