Commit graph

712 commits

Author SHA1 Message Date
ikechan8370
125d170f08 fix: 修复解除禁言的bug 2023-06-25 01:09:00 +08:00
ikechan8370
0279171204 Merge branch 'wip2.7' of github.com:ikechan8370/chatgpt-plugin into wip2.7 2023-06-25 01:08:48 +08:00
ikechan8370
4df97c7044 fix: move send avatar into send picture tool 2023-06-25 01:08:13 +08:00
ikechan8370
7f799b657c
Merge branch 'v2' into wip2.7 2023-06-25 01:04:44 +08:00
ikechan8370
c375cba335 fix: 修改一些提示 2023-06-25 01:01:29 +08:00
Sean Murphy
2c5b084b04
修复在guoba面板填写黑白名单不生效的bug,修复azure语音模式下无参数查看语音角色列表时不返回结果的bug。 (#476)
* feat: add support for ‘greeting’ and ‘global reply mode’ commands, improve variable naming and remove unnecessary backend output.

* feat: Add support for black and white lists, global reply mode and voice role settings, private chat switch, and active greeting configuration. Refactor some variable names and comment out redundant code for better readability and reduced backend output.

* feat: 为新功能完善了帮助面板

* docs: 完善了‘打招呼’的帮助说明

* Commit Type: feat, bugfix

Add functionality to view plugin command table, fix bug in blacklist/whitelist, and fix bug where chat mode can still be used in private messaging when disabled.

* Commit Type: feat, bugfix

Add functionality to view plugin command table, fix bug in blacklist/whitelist, and fix bug where chat mode can still be used in private messaging when disabled.

* refactor: Remove redundant log output.

* Refactor: optimize code logic

* Fix: 修复绘图指令表被抢指令的bug。

* Refactor:1. Add support for automatically translating replies to Japanese and generating voice messages in VITS voice mode (please monitor remaining quota after enabling). 2. Add translation function. 3. Add emotion configuration for Azure voice mode, allowing the robot to select appropriate emotional styles for replies.

* Refactor:Handle the issue of exceeding character setting limit caused by adding emotion configuration.

* Fix: fix bugs

* Refactor: Added error feedback to translation service

* Refactor: Added support for viewing the list of supported roles for each language mode, and fixed some bugs in the emotion switching feature of the auzre mode.

* Refactor: Optimized some command feedback and added owner restriction to chat record export function.

* Refactor: Optimized feedback when viewing role list to avoid excessive messages.

* Refactor: Optimized feedback when configuring multi-emotion mode.

* Feature: Added help instructions for translation feature.

* chore: Adjust help instructions for mood settings

* Fix: Fixed issue where only first line of multi-line replies were being read and Azure voice was pronouncing punctuation marks.

* Fix: Fixed bug where switching to Azure voice mode prompted for missing key and restricted ability to view voice role list to only when in voice mode.

* Refactor: Add image OCR function and support translation for both quoted text and image.

* fix: Fix issue with error caused by non-image input.

* Refactor: Optimize code to filter emojis that cannot be displayed properly in claude mode.

* Refactor: Optimize some code structures.

* fix: Fix the bug of returning only one result when entering multiple lines of text on Windows system.

* Refactor: Optimize code logic for better user experience

* Refactor: Fix the conflict issue with other plugin translation commands

* Refactor: Replace Baidu Translation with Youdao Translation to eliminate configuration steps; optimize translation experience; add missing dependency prompts instead of causing program errors.Optimize the experience of switching between voice mode and setting global reply mode.

* Refactor: Remove unused files and dependencies in the project.

* Feature: Add Youdao translation service to provide more comprehensive translation support.

* Refactor: Optimize translation experience

* Refactor: Optimize translation experience

* Feature: Add functionality of keyword search command

* Feature: Add functionality of keyword search command.

* Refactor: Remove redundant code

* Add: Add feature to support randomly selecting roles for Azure voice. Refactor the code to support existing voice services for the ‘greeting’ feature. Fix the display issue of Azure voice role selection on the Guoba panel.

* Refactor: Remove redundant code

* Refactor: Improve the function of setting global voice roles and viewing role lists. Now you can set default roles for each voice service separately or view the supported role list.

* Refactor: Remove redundant code

* Feature: Add new function to support random character dialogues in all voice modes, add the ability to view the current user’s reply settings, and improve related functions in the global settings.

* Refactor: Add compatibility directive for viewing reply settings feature

* Feature: support adding QQ number to blacklist/whitelist

* fix: 处理全局设置指令被上下班指令占用的问题

* fix: 处理全局设置指令被上下班指令占用的问题

* Refactor: Preprocess dialogue blacklist/whitelist when filling in the form in Guoba panel

* Fix: Fixed the issue where black and white lists were not effective when filled in the Guoba panel, and the issue where no results were returned when viewing the voice role list without parameters in azure tts mode.

---------

Co-authored-by: Sean <1519059137@qq.com>
Co-authored-by: ikechan8370 <geyinchibuaa@gmail.com>
2023-06-25 00:59:02 +08:00
HalcyonAlcedo
a3fab7316f
feat: 新增ws接口,适配工具 (#482)
* 修复后台API反代地址未能正确显示的问题

* 更新渲染页面配置

* 添加个人聊天模式配置

* 将用户数据获取改到common中

* 修复错误的渲染页面参数

* 修复bug

* 添加Live2D

* 修复渲染页面错误

* 修复渲染传入值

* 更新渲染

* 修复图表渲染bug

* 调整live2d模型大小

* 修复live2d无法关闭问题

* 修复错误的传值

* 修复ai命名

* 更新渲染

* 添加用户独立设定

* 更新渲染配置适配个人设置

* 修复合并导致的渲染文件异常删除

* 修复用户数据缺失问题

* 修复旧版本数据缺失问题

* 修复bing参数不存在问题,兼容miao的截图

* 修复受限token重试时不被排除的问题

* 修复个人模式下结束对话的模式错误

* 更新渲染页面,将预览版转为正式版

* 修复传统渲染无法调用截图功能的问题

* 文字模式也进行一次缓存

* 更新README

* Update README.md

* 更新渲染

* 更新渲染页面

* 添加版本信息

* 遗漏参数

* 丢失引用

* 补充路由

* 添加云转码功能

* 判断node-silk是否正常合成

* 云转码提示

* 修复图片渲染出错

* 云转码支持发送Buffer

* 添加云转码模式支持

* 更新描述

* 更新后台渲染页面

* 更新配置

* 更新渲染页面

* 添加云渲染

* 修复错误的接口调用

* 修复遗漏的数据转换

* 修复获取的图片数据异常问题

* 更新后台配置

* 更新渲染页面

* 修复云渲染访问地址错误

* 更新渲染页面

* 修复遗漏的模型文件

* 修复live2d问题

* 更新live2d以及相关配置

* 修复遗漏的数据参数

* 修复新live2d情况下云渲染错误的问题

* 适配云渲染1.1.2等待参数

* 添加云服务api检查

* 更新渲染页面

* 添加live2d加载检测

* 修复错误的属性判断

* 添加云渲染DPR

* 更新sydney支持内容生成

* 修改文件模式语音转码接收模式

* 添加云转码时recordUrl检查

* 更新后台配置项

* 修复错误的文本描述

* 更新后台页面

* 添加全局对话模式设置,更新后台面板

* 添加第三方渲染服务适配

* 修复第三方服务器live2d加载导致的渲染失败问题

* 修复后台地址无法实时保存的问题

* 添加live2d模型透明度设置

* 合并更新

* 更新渲染页面

* 更新渲染页面

* 使dpr对本地渲染也生效

* 更新渲染页面

* 添加网页截图功能

* 添加后台配置项

* 添加配置导出和导入功能

* 运行通过参数传递用户token

* 登录时将token作为参数返回

* 修复错误

* 添加密码修改和用户删除接口

* 修正密码比对

* 修复user错误

* 优化数据保存时的返回值

* 添加系统额外服务检查api

* 添加AccessToken配置

* 修复错误的导入提示

* 添加ws连接

* 添加ws用户信息获取

* 修复错误的循环

* 修正ws参数

* 添加群消息获取权限

* 添加用户多端登录支持

* 修复错误的路径引用

* 修复错误的路径引用

* 修复错误

* 修复页面数据获取失败问题

---------

Co-authored-by: ikechan8370 <geyinchibuaa@gmail.com>
2023-06-25 00:58:41 +08:00
ikechan8370
20d6122e38 fix: 修改命令正则 2023-06-25 00:54:46 +08:00
ikechan8370
9c3caec780 fix: 收拾一下 2023-06-25 00:52:13 +08:00
ikechan8370
a70b25987e fix: 增加一些提示和一个暂时的公共接口 2023-06-25 00:37:24 +08:00
ikechan8370
2bf92e2bbf fix: 一些极端的措施 2023-06-24 23:38:36 +08:00
ikechan8370
06371b1668 fix: 修改一些提示。tool太多机器人开始混乱了 2023-06-24 23:34:40 +08:00
ikechan8370
34bba041e5 fix: add a image caption tool 2023-06-24 23:24:14 +08:00
ikechan8370
6d5a9ed97d fix: groupId format error 2023-06-24 18:02:02 +08:00
ikechan8370
5ccefa6fa6 feat: 搜图和发图 2023-06-24 17:53:57 +08:00
ikechan8370
8d13145d2f feat: 增加搜索来源选项 2023-06-24 16:12:04 +08:00
ikechan8370
592e18494b fix: 加一句描述 2023-06-24 12:54:17 +08:00
ikechan8370
76008952b5 feat: 增加一个google搜索源 2023-06-24 12:13:45 +08:00
ikechan8370
9c07b4fef7 feat: serp tool 2023-06-24 01:38:06 +08:00
ikechan8370
ed337275d5 fix: website工具用浏览器 2023-06-23 23:29:27 +08:00
ikechan8370
cd13b829e7 fix: 天气不存在城市 2023-06-23 23:03:08 +08:00
ikechan8370
e192e51ef2 fix: 加个天气小工具 2023-06-23 22:50:21 +08:00
ikechan8370
39478d2928 fix: 哔哩哔哩封面损坏问题 2023-06-23 21:21:09 +08:00
ikechan8370
37b884abe1 fix: 删掉认主不然一直禁言我烦死了 2023-06-23 18:56:58 +08:00
ikechan8370
11dd66c306 fix: fuck openai documents 2023-06-23 18:54:51 +08:00
ikechan8370
c5212a6f1e fix: 试图优化逻辑 2023-06-23 18:50:18 +08:00
ikechan8370
2e679b5d0f fix: 修复管理员权限判断问题(可能吧) 2023-06-23 18:40:37 +08:00
ikechan8370
ef72d886a5 fix: 加回来禁言和踢出 2023-06-23 18:27:23 +08:00
ikechan8370
351597a33d fix: 只有管理员和群主才能用jinyan和kickout 2023-06-23 18:04:49 +08:00
ikechan8370
599f37e627 fix: 修复一些功能易用性 2023-06-23 17:33:55 +08:00
ikechan8370
be7ceafb4b fix: 修改禁言时间范围 2023-06-23 01:49:21 +08:00
ikechan8370
188dcbcf9c fix: 暂时阉割掉全员禁言功能 2023-06-23 01:42:35 +08:00
ikechan8370
cf7b9b7225 feat: 群聊上下文 2023-06-23 01:25:32 +08:00
ikechan8370
7b6357eaf8 fix: syntax error 2023-06-23 01:18:53 +08:00
ikechan8370
49548e26b7 fix: syntax error 2023-06-23 01:18:00 +08:00
ikechan8370
97b3acbf3b feat: 初步支持function call(WIP) 2023-06-23 01:09:12 +08:00
ikechan8370
4a4dceec18 fix: 2.7 dev start 2023-06-22 18:30:08 +08:00
TeaTing
fbe8953667
🥰更改chatgpt-plugin的更新代码顺便修复一个正则问题 (#450)
* 改进ChatGPT-Plugin的更新代码

* 删除旧更新

* 增加声明

* 更改文件编码

* 更改正则触发表达式

* 修复一个正则问题,防止抢了ap的#指令表
2023-06-17 12:07:14 +08:00
ikechan8370
adc0817731
fix: 把随机系统消息加回来 2023-06-16 19:48:09 +08:00
HalcyonAlcedo
317283218a
feat: 适配远程渲染服务器,优化Live2D (#463)
* 修复后台API反代地址未能正确显示的问题

* 更新渲染页面配置

* 添加个人聊天模式配置

* 将用户数据获取改到common中

* 修复错误的渲染页面参数

* 修复bug

* 添加Live2D

* 修复渲染页面错误

* 修复渲染传入值

* 更新渲染

* 修复图表渲染bug

* 调整live2d模型大小

* 修复live2d无法关闭问题

* 修复错误的传值

* 修复ai命名

* 更新渲染

* 添加用户独立设定

* 更新渲染配置适配个人设置

* 修复合并导致的渲染文件异常删除

* 修复用户数据缺失问题

* 修复旧版本数据缺失问题

* 修复bing参数不存在问题,兼容miao的截图

* 修复受限token重试时不被排除的问题

* 修复个人模式下结束对话的模式错误

* 更新渲染页面,将预览版转为正式版

* 修复传统渲染无法调用截图功能的问题

* 文字模式也进行一次缓存

* 更新README

* Update README.md

* 更新渲染

* 更新渲染页面

* 添加版本信息

* 遗漏参数

* 丢失引用

* 补充路由

* 添加云转码功能

* 判断node-silk是否正常合成

* 云转码提示

* 修复图片渲染出错

* 云转码支持发送Buffer

* 添加云转码模式支持

* 更新描述

* 更新后台渲染页面

* 更新配置

* 更新渲染页面

* 添加云渲染

* 修复错误的接口调用

* 修复遗漏的数据转换

* 修复获取的图片数据异常问题

* 更新后台配置

* 更新渲染页面

* 修复云渲染访问地址错误

* 更新渲染页面

* 修复遗漏的模型文件

* 修复live2d问题

* 更新live2d以及相关配置

* 修复遗漏的数据参数

* 修复新live2d情况下云渲染错误的问题

* 适配云渲染1.1.2等待参数

* 添加云服务api检查

* 更新渲染页面

* 添加live2d加载检测

* 修复错误的属性判断

* 添加云渲染DPR

* 更新sydney支持内容生成

* 修改文件模式语音转码接收模式

* 添加云转码时recordUrl检查

* 更新后台配置项

* 修复错误的文本描述

* 更新后台页面

* 添加全局对话模式设置,更新后台面板

* 添加第三方渲染服务适配

* 修复第三方服务器live2d加载导致的渲染失败问题

* 修复后台地址无法实时保存的问题

* 添加live2d模型透明度设置

* 合并更新

* 更新渲染页面

* 更新渲染页面

* 使dpr对本地渲染也生效

* 更新渲染页面

* 添加网页截图功能

* 添加后台配置项

* 添加配置导出和导入功能

* 运行通过参数传递用户token

* 登录时将token作为参数返回

* 修复错误

* 添加密码修改和用户删除接口

* 修正密码比对

* 修复user错误

* 优化数据保存时的返回值

* 添加系统额外服务检查api

* 添加AccessToken配置

---------

Co-authored-by: ikechan8370 <geyinchibuaa@gmail.com>
2023-06-12 21:38:38 +08:00
ikechan8370
508beaece3
fix: 可能能解决findIndex 2023-06-10 16:23:16 +08:00
Sean Murphy
bdad936c70
feat: 黑白名单支持配置qq号;支持所有语音模式下的随机角色对话;新增查看当前用户的回复设置;完善全局设置的相关功能;支持为Azure语音服务随机选择角色;优化设置全局语音角色和查看角色列表的功能;重构了代码以支持现有语音服务的打招呼功能;修复了Guoba面板上Azure语音角色选择的显示问题。 (#436)
* feat: add support for ‘greeting’ and ‘global reply mode’ commands, improve variable naming and remove unnecessary backend output.

* feat: Add support for black and white lists, global reply mode and voice role settings, private chat switch, and active greeting configuration. Refactor some variable names and comment out redundant code for better readability and reduced backend output.

* feat: 为新功能完善了帮助面板

* docs: 完善了‘打招呼’的帮助说明

* Commit Type: feat, bugfix

Add functionality to view plugin command table, fix bug in blacklist/whitelist, and fix bug where chat mode can still be used in private messaging when disabled.

* Commit Type: feat, bugfix

Add functionality to view plugin command table, fix bug in blacklist/whitelist, and fix bug where chat mode can still be used in private messaging when disabled.

* refactor: Remove redundant log output.

* Refactor: optimize code logic

* Fix: 修复绘图指令表被抢指令的bug。

* Refactor:1. Add support for automatically translating replies to Japanese and generating voice messages in VITS voice mode (please monitor remaining quota after enabling). 2. Add translation function. 3. Add emotion configuration for Azure voice mode, allowing the robot to select appropriate emotional styles for replies.

* Refactor:Handle the issue of exceeding character setting limit caused by adding emotion configuration.

* Fix: fix bugs

* Refactor: Added error feedback to translation service

* Refactor: Added support for viewing the list of supported roles for each language mode, and fixed some bugs in the emotion switching feature of the auzre mode.

* Refactor: Optimized some command feedback and added owner restriction to chat record export function.

* Refactor: Optimized feedback when viewing role list to avoid excessive messages.

* Refactor: Optimized feedback when configuring multi-emotion mode.

* Feature: Added help instructions for translation feature.

* chore: Adjust help instructions for mood settings

* Fix: Fixed issue where only first line of multi-line replies were being read and Azure voice was pronouncing punctuation marks.

* Fix: Fixed bug where switching to Azure voice mode prompted for missing key and restricted ability to view voice role list to only when in voice mode.

* Refactor: Add image OCR function and support translation for both quoted text and image.

* fix: Fix issue with error caused by non-image input.

* Refactor: Optimize code to filter emojis that cannot be displayed properly in claude mode.

* Refactor: Optimize some code structures.

* fix: Fix the bug of returning only one result when entering multiple lines of text on Windows system.

* Refactor: Optimize code logic for better user experience

* Refactor: Fix the conflict issue with other plugin translation commands

* Refactor: Replace Baidu Translation with Youdao Translation to eliminate configuration steps; optimize translation experience; add missing dependency prompts instead of causing program errors.Optimize the experience of switching between voice mode and setting global reply mode.

* Refactor: Remove unused files and dependencies in the project.

* Feature: Add Youdao translation service to provide more comprehensive translation support.

* Refactor: Optimize translation experience

* Refactor: Optimize translation experience

* Feature: Add functionality of keyword search command

* Feature: Add functionality of keyword search command.

* Refactor: Remove redundant code

* Add: Add feature to support randomly selecting roles for Azure voice. Refactor the code to support existing voice services for the ‘greeting’ feature. Fix the display issue of Azure voice role selection on the Guoba panel.

* Refactor: Remove redundant code

* Refactor: Improve the function of setting global voice roles and viewing role lists. Now you can set default roles for each voice service separately or view the supported role list.

* Refactor: Remove redundant code

* Feature: Add new function to support random character dialogues in all voice modes, add the ability to view the current user’s reply settings, and improve related functions in the global settings.

* Refactor: Add compatibility directive for viewing reply settings feature

* Feature: support adding QQ number to blacklist/whitelist

* fix: 处理全局设置指令被上下班指令占用的问题

* fix: 处理全局设置指令被上下班指令占用的问题

---------

Co-authored-by: Sean <1519059137@qq.com>
Co-authored-by: ikechan8370 <geyinchibuaa@gmail.com>
2023-06-05 11:40:10 +08:00
Maitaozi
7007cacf6f
临时解决QQ频道、KOOK异常 (#441)
利用cache块隔离,临时解决获取不到e.group函数时自动跳过报错并继续执行
2023-06-05 11:38:37 +08:00
kae_mihara
220a3f155d
增加了“最新词云”功能 (#465)
* 增加了"最新词云"功能

* fix bug

* fix bug...

* fix bug......
2023-06-05 11:38:03 +08:00
K2Lin
c00b6d85d2
Fix Chat reset (#461) 2023-06-05 11:36:13 +08:00
ikechan8370
a46d6d850b fix: remove 垃圾代码 2023-06-02 19:39:04 +08:00
ikechan8370
5c7d85efd0 fix: 删除必应无token的提示因为不需要token了 2023-06-02 13:41:54 +08:00
ikechan8370
cecb16ee62
Update README.md 2023-06-02 13:28:07 +08:00
ikechan8370
9b54980ec0
Update README.md 2023-05-31 13:54:41 +08:00
ikechan8370
0efc67f522 fix: 微软能不能少报一些错啊 2023-05-30 17:12:46 +08:00