Commit graph

51 commits

Author SHA1 Message Date
ikechan8370
ce65cc862f fix: 修复lain下部分工具失效问题 2023-11-07 19:59:10 +08:00
ikechan8370
9e7a614ded
fix: 修复不知道啥时候不小心碰到键盘导致的错误 2023-10-19 22:07:54 +08:00
ikechan8370
b1e3fb7892 fix: 减少必应接受的context长度不然爆炸 2023-10-19 21:12:53 +08:00
ikechan8370
a4ac59d8f9 fix: 兼容性修复 2023-10-14 13:14:59 +08:00
ikechan8370
e68c4fdd50 fix: 兼容性修复 2023-10-14 13:11:55 +08:00
ikechan8370
59ab8df658 fix: 兼容性修复 2023-10-14 13:07:01 +08:00
ikechan8370
51f786bd44 fix: 修改默认搜索引擎为必应 2023-07-23 21:24:26 +08:00
ikechan8370
b5669de782 fix: remove unuseful fields to reduce token usage 2023-07-10 11:18:15 +08:00
Sean Murphy
75672586ca
修复机器人使用工具发送内容会发送给自己的bug, tool适配新版鳄梨插件的指令. (#506)
* 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.

* fix: 2.7 dev start

* feat: 初步支持function call(WIP)

* fix: syntax error

* fix: syntax error

* feat: 群聊上下文

* fix: 暂时阉割掉全员禁言功能

* fix: 修改禁言时间范围

* fix: 修复一些功能易用性

* fix: 只有管理员和群主才能用jinyan和kickout

* fix: 加回来禁言和踢出

* fix: 修复管理员权限判断问题(可能吧)

* fix: 试图优化逻辑

* fix: fuck openai documents

* fix: 删掉认主不然一直禁言我烦死了

* fix: 哔哩哔哩封面损坏问题

* fix: 加个天气小工具

* fix: 天气不存在城市

* fix: website工具用浏览器

* feat: serp tool

* feat: 增加一个google搜索源

* fix: 加一句描述

* feat: 增加搜索来源选项

* feat: 搜图和发图

* fix: groupId format error

* Refactor: Optimized the HTML parsing rules

* fix: Fixed the bug where conversations could not be properly ended in at mode, now it works normally

* refactor: Added EliMovieTool and EliMusicTool. Modified some tool’s prompt to make AI make better choices. Optimized the display of chat history.Remove SendMusicTool and replace it with EliMusicTool.

* chore: trivial changes.

* refactor:Keep SearchMusicTool and SendMusicTool when avocado plugin is not installed, waiting for more testing~~~

* Refactor: Move the parameter processing logic of some tools into each tool internally.🥑Rename ttstool to SendAudioMessageTool, defaulting to the voice role configured by the current user, and support personalized configuration of the existing tts mode in the plugin.🥑Add SendMessageToSpecificGroupOrUserTool, which allows the robot to send messages to specific groups or friends.🥑Encapsulate the function of generating audio messages into an independent function for easy tool invocation.🥑Separate SendPictureTool and SendAvatarTool to avoid unnecessary bugs.🥑

* chore: Remove unnecessary log file🥑

* refactor: Trivial changes and fixed a bug in QueryUserinfoTool.🥑

* Refactor: Rewrite blacklist and whitelist functionality, optimize code calls Description: Rewrote the blacklist and whitelist functionality to support group, QQ number, and a combination of group and QQ number configurations. Removed the command to set the blacklist and whitelist functionality and unified it through the Guoba panel. Also optimized some code calls to EliMusicTool and EliMovieTool.🥑

* chore: Adjust some tool prompts

* chore: adjust prompt

* Refactor: Improve the user experience of EliMovieTool and EliMusicTool🥑

* Fix: Fix the bug that AI sends content to itself using the tool🥑

* refactor: Instructions adapted to the new version of avocado-plugin

---------

Co-authored-by: Sean <1519059137@qq.com>
Co-authored-by: ikechan8370 <geyinchibuaa@gmail.com>
Co-authored-by: ikechan8370 <geyinchi@buaa.edu.cn>
2023-07-08 16:50:51 +08:00
ikechan8370
66172feb3e fix: 默认使用百度搜索引擎 2023-07-05 15:16:02 +08:00
ikechan8370
3b807211c2 fix: group 2023-07-03 11:21:47 +08:00
ikechan8370
9be8b54faf feat: give title 2023-07-03 01:19:11 +08:00
ikechan8370
e42307fd76 fix: qq.trim 2023-07-03 00:51:17 +08:00
ikechan8370
f1da0d36d9 fix: 更换website总结网站内容默认模型 2023-07-01 21:56:20 +08:00
ikechan8370
285afad993 fix: 修复website tool的bug(啊) 2023-07-01 21:42:12 +08:00
ikechan8370
dd249615e4 fix: try to add required token 2023-07-01 16:44:52 +08:00
ikechan8370
a94017e6e5 fix: add more debug log 2023-07-01 16:31:17 +08:00
ikechan8370
7a8b30db14 fix: merge tons of conflict 2023-07-01 15:55:07 +08:00
ikechan8370
f0b717bed8 fix: 修复 2023-07-01 15:49:21 +08:00
Sean Murphy
2443ed6f71
🥵🥵🥵 (#496)
* 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.

* fix: 2.7 dev start

* feat: 初步支持function call(WIP)

* fix: syntax error

* fix: syntax error

* feat: 群聊上下文

* fix: 暂时阉割掉全员禁言功能

* fix: 修改禁言时间范围

* fix: 修复一些功能易用性

* fix: 只有管理员和群主才能用jinyan和kickout

* fix: 加回来禁言和踢出

* fix: 修复管理员权限判断问题(可能吧)

* fix: 试图优化逻辑

* fix: fuck openai documents

* fix: 删掉认主不然一直禁言我烦死了

* fix: 哔哩哔哩封面损坏问题

* fix: 加个天气小工具

* fix: 天气不存在城市

* fix: website工具用浏览器

* feat: serp tool

* feat: 增加一个google搜索源

* fix: 加一句描述

* feat: 增加搜索来源选项

* feat: 搜图和发图

* fix: groupId format error

* Refactor: Optimized the HTML parsing rules

* fix: Fixed the bug where conversations could not be properly ended in at mode, now it works normally

* refactor: Added EliMovieTool and EliMusicTool. Modified some tool’s prompt to make AI make better choices. Optimized the display of chat history.Remove SendMusicTool and replace it with EliMusicTool.

* chore: trivial changes.

* refactor:Keep SearchMusicTool and SendMusicTool when avocado plugin is not installed, waiting for more testing~~~

* Refactor: Move the parameter processing logic of some tools into each tool internally.🥑Rename ttstool to SendAudioMessageTool, defaulting to the voice role configured by the current user, and support personalized configuration of the existing tts mode in the plugin.🥑Add SendMessageToSpecificGroupOrUserTool, which allows the robot to send messages to specific groups or friends.🥑Encapsulate the function of generating audio messages into an independent function for easy tool invocation.🥑Separate SendPictureTool and SendAvatarTool to avoid unnecessary bugs.🥑

* chore: Remove unnecessary log file🥑

* refactor: Trivial changes and fixed a bug in QueryUserinfoTool.🥑

* Refactor: Rewrite blacklist and whitelist functionality, optimize code calls Description: Rewrote the blacklist and whitelist functionality to support group, QQ number, and a combination of group and QQ number configurations. Removed the command to set the blacklist and whitelist functionality and unified it through the Guoba panel. Also optimized some code calls to EliMusicTool and EliMovieTool.🥑

---------

Co-authored-by: Sean <1519059137@qq.com>
Co-authored-by: ikechan8370 <geyinchibuaa@gmail.com>
Co-authored-by: ikechan8370 <geyinchi@buaa.edu.cn>
2023-07-01 15:46:15 +08:00
ikechan8370
8acb3f48e7 fix: image caption qq error 2023-06-26 15:48:17 +08:00
ikechan8370
1a73940231 fix: 调整一些prompt 2023-06-26 15:23:33 +08:00
ikechan8370
ca28b00679 feat: 一些小工具 2023-06-26 14:50:43 +08:00
ikechan8370
c99af43571 fix: genshin tool fix 2023-06-26 13:47:35 +08:00
ikechan8370
8bc5829777 fix: 修复miaoplugin 2023-06-26 13:34:57 +08:00
ikechan8370
328849b320 fix: 优化一些tool 2023-06-26 13:25:00 +08:00
ikechan8370
8257779f5c fix: 优化一些tool 2023-06-26 13:17:14 +08:00
ikechan8370
d3cc6e4679 fix: delete a 2023-06-25 23:19:54 +08:00
ikechan8370
ced2b4eeb6 feat: add a tool 2023-06-25 23:18:54 +08:00
ikechan8370
87182f1a1f fix: 修复sr 2023-06-25 20:25:37 +08:00
ikechan8370
9f7a51679f fix: 这户i对了吧 2023-06-25 19:45:40 +08:00
ikechan8370
3427d23054 fix: try 2023-06-25 18:52:08 +08:00
ikechan8370
bcb19db162 fix: ? 2023-06-25 18:47:34 +08:00
ikechan8370
46dc1a8c39 fix: sr 2023-06-25 18:45:31 +08:00
ikechan8370
fc029de75c fix: update sr 2023-06-25 18:42:34 +08:00
ikechan8370
7e559881eb fix: 原来是这样 2023-06-25 18:36:27 +08:00
ikechan8370
37572bd635 fix: 修复ap默认at机器人的问题 2023-06-25 18:32:59 +08:00
ikechan8370
6e912d68c8 fix: 支持ap的dev分支 2023-06-25 18:24:00 +08:00
ikechan8370
a35f8a31a0 feat: try to support ap-plugin 2023-06-25 18:07:23 +08:00
ikechan8370
feb6b31994 fix: groupId 格式问题 2023-06-25 17:31:09 +08:00
ikechan8370
de8cc48156 fix: tts role 2023-06-25 16:48:29 +08:00
ikechan8370
d52f95780a fix: tts tool 2023-06-25 16:46:48 +08:00
ikechan8370
38383e373e fix: 啊啊啊 2023-06-25 16:22:27 +08:00
ikechan8370
cd1687299a fix: 啊 2023-06-25 16:21:32 +08:00
ikechan8370
8c7e6489e7 fix: 啊 2023-06-25 16:17:23 +08:00
ikechan8370
116e4bef3c feat: add a tool 2023-06-25 16:09:58 +08:00
ikechan8370
da27e6a1b3 feat: add a tts tool 2023-06-25 16:09:47 +08:00
ikechan8370
c3d9f65a03 fix: 删掉多余的提示 2023-06-25 15:08:47 +08:00
ikechan8370
8a32f7e4fd fix: add visual qa 2023-06-25 15:01:56 +08:00
ikechan8370
5bfd55e765 fix: 删掉惩罚 2023-06-25 01:52:25 +08:00