11# ChatGPT-YourChatRobot
22
3- > ### NEWS: 正在尝试接入OPENAI的ai画图功能 ([ DALL·E模型] ( https://platform.openai.com/docs/models/dall-e ) )
3+ > ### NEWS: 已接入OPENAI的ai画图功能 ([ DALL·E模型] ( https://platform.openai.com/docs/models/dall-e ) )
44> - 无需为此功能额外配置apikey,使用原先的即可
5- > - 可先在feat/image分支或release里的beta版试用
6- > - --- 2023.8.10
7- >
8- > <img src =" https://cdn.jsdelivr.net/gh/ashinnotfound/ImageHosting/img/f5cb7fb04594b894edf8d614ca3fe5f.jpg " style =" zoom :25% ;" /><img src =" https://cdn.jsdelivr.net/gh/ashinnotfound/ImageHosting/img/28894abd84617a4efca4ddf9c3abc99.jpg " style =" zoom :25% ;" />
5+ > - 默认指令 “ai画图” 可在配置选项修改,亦可修改返回图片方式(限qq机器人)
6+ > ![ ] ( https://cdn.jsdelivr.net/gh/ashinnotfound/ImageHosting/img/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE%202023-11-10%20133117.png ) ![ ] ( https://cdn.jsdelivr.net/gh/ashinnotfound/ImageHosting/img/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE%202023-11-10%20132601.png )
7+ > --- 2023.11.10
98
109## 简介
1110
@@ -29,6 +28,8 @@ qq机器人实现基于[TheoKanning/openai-java](https://github.com/TheoKanning/
2928
3029使用mirai/itchat登录qq/微信并监听消息->调用openai接口将消息向gpt提问->使用mirai/itchat在qq/微信里回复gpt的回答
3130
31+ 其中ai画图采用[ DALL·E模型] ( https://platform.openai.com/docs/models/dall-e ) 的[ generation方法] ( https://platform.openai.com/docs/guides/images/generations )
32+
3233## 使用
3334
3435❤❤❤ 开箱即用!!! ❤❤❤
@@ -48,7 +49,6 @@ qq机器人实现基于[TheoKanning/openai-java](https://github.com/TheoKanning/
4849 并把它们配置在application.yml里:
4950
5051```
51- //这是application.yml文件
5252proxy:
5353 # 代理配置
5454 # 国内墙了gpt的api,所以得用代理,一般你使用的代理软件会有相关信息,例子:
7777qq:
7878 # 是否使用qq true/false
7979 enable: true
80- # 登陆方法:1.密码登录 2.扫码登录 (推荐)
81- method: 2
82- # qq账号密码(扫码登录则无需填写账号密码)
80+ # 登陆方法:true扫码登录 (推荐) false密码登录
81+ loginByQRCode: true
82+ # qq账号密码
8383 account:
84+ # (扫码登录则无需填写密码)
8485 password:
8586 # 是否自动同意好友申请
8687 acceptNewFriend: false
8788 # 是否自动同意被邀请入群
8889 acceptNewGroup: false
90+ # ai画图时返回方法: true链接(更快) false图片
91+ returnDrawByURL: true
8992
9093wechat:
9194 # 是否使用微信 true/false
@@ -95,10 +98,10 @@ wechat:
9598
9699keyword:
97100 # 重置会话指令
98- resetWord : "重置会话"
101+ reset : "重置会话"
99102 # ai画图指令(DALL·E模型 https://platform.openai.com/docs/models/dall-e)
100103 # generation 根据关键词生成图片(https://platform.openai.com/docs/guides/images/generations)
101- imageGeneration : "ai生成图片 "
104+ draw : "ai画图 "
102105```
103106
1041073 . 然后 run!!!😁😁😁
@@ -135,7 +138,11 @@ tips:机器人响应速度与你的网络环境挂钩。
135138<details >
136139
137140<summary ></summary >
138-
141+
142+ ### v3.8 (NOV 10, 2023)
143+ - 把之前写的([ DALL·E模型] ( https://platform.openai.com/docs/models/dall-e ) )接入完善了,现在可以在聊天中直接调用其进行ai画图
144+ - qq机器人基于[ TheoKanning/openai-java] ( https://github.com/TheoKanning/openai-java ) 和[ mamoe/mirai] ( https://github.com/mamoe/mirai.git )
145+ - 微信机器人基于[ TheoKanning/openai-java] ( https://github.com/TheoKanning/openai-java ) 和[ wxmbaci/itchat4j-uos] ( https://github.com/wxmbaci/itchat4j-uos )
139146### v3.7 (Aug 8, 2023)
140147- 最近有空能闲下来看看这个项目,主要更新了项目依赖、优化了下代码结构、增加了token消耗的计算、优化了bot交互返回信息
141148- qq机器人基于[ TheoKanning/openai-java] ( https://github.com/TheoKanning/openai-java ) 和[ mamoe/mirai] ( https://github.com/mamoe/mirai.git )
0 commit comments