Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🥵🥵🥵 #496

Merged
merged 131 commits into from
Jul 1, 2023
Merged

🥵🥵🥵 #496

merged 131 commits into from
Jul 1, 2023

Conversation

Qz-Sean
Copy link
Contributor

@Qz-Sean Qz-Sean commented Jun 27, 2023

  • 修复了在API智能模式下,群聊无法正常结束对话的问题。同时,调整了该模式下机器人读取的聊天记录的格式,避免机器人拿不到自己、用户的qq号和群号。
  • 优化了部分工具的提示语,以便AI更清楚地理解工具的使用条件。
  • 新增了EliMovieToolEliMusicTool两个工具,可以通过这两个工具查看当前热门电影和使用点歌功能。当没安装avocado-plugin时保留SearchMusicToolSendMusicTool,等我多测测~~
  • 将部分tool的参数处理过程放到各个工具内部进行。
  • ttstool更名为SendAudioMessageTool,默认为当前用户配置的语音角色,支持插件现有tts模式的个性化配置。
  • 新增SendMessageToSpecificGroupOrUserTool,可让机器人发送消息给指定群聊或好友。
  • 将生成语音消息的功能封装成独立函数方便工具调用。
  • SendPictureToolSendAvatarTool分开,避免产生不必要的bug。
  • 收到了用户刁钻需求,重写了黑白名单功能,现在可支持群组,qq号,群组加qq号的混合配置。因为现在黑名单的配置参数比较杂,所以去除了指令设置黑白名单功能,统一通过Guob面板设置。
    1. 默认设置为添加群号。白名单优先级高于黑名单。
    2. 需要添加QQ号时在前面添加^(例如:^123456),此全局添加白名单,即除白名单以外的所有人都不能使用插件对话。
    3. 如果需要在某个群里独享moment,即群聊中只有白名单上的qq号能用,则使用(群号^qq)的格式(例如:123456^123456)。
    4. 白名单优先级:混合制 > qq > 群号。 依次判断当前会话是否符合白名单,通过则进入对话且不再向后判断。
    5. 黑名单优先级:群号 > qq > 混合制。

Sean and others added 30 commits April 9, 2023 00:02
…prove variable naming and remove unnecessary backend output.
…to v2

# Conflicts:
#	utils/SydneyAIClient.js
…ice 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.
# Conflicts:
#	apps/help.js
#	apps/management.js
#	config/config.example.json
#	server/index.js
#	utils/common.js
#	utils/config.js
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.
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.
…nese 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.
ikechan8370 and others added 17 commits June 24, 2023 12:54
…to v2

# Conflicts:
#	apps/chat.js
#	apps/entertainment.js
#	guoba.support.js
#	package-lock.json
#	utils/config.js
#	utils/tools/JinyanTool.js
#	utils/tools/SendAvatarTool.js
#	utils/tools/SendPictureTool.js
#	yarn.lock
…rompt to make AI make better choices. Optimized the display of chat history.Remove SendMusicTool and replace it with EliMusicTool.
# Conflicts:
#	apps/chat.js
#	utils/tools/SendMusicTool.js
#	utils/tools/SendPictureTool.js
@Xcating
Copy link
Contributor

Xcating commented Jun 27, 2023

image
你这有问题吧

@Xcating
Copy link
Contributor

Xcating commented Jun 27, 2023

image 你这有问题吧

第一个大小写好像不对

@Qz-Sean Qz-Sean changed the title 修复了在API智能模式下,群聊无法正常结束对话的问题。同时,调整了该模式下机器人读取的聊天记录的格式,避免机器人拿不到自己、用户的qq号和群号。新增了EliMovieTool和EliMusicTool两个工具,可以通过这两个工具查看当前热门电影和使用点歌功能。优化了部分工具的提示语,以便AI更清楚地理解工具的使用条件。 修复了在API智能模式下,群聊无法正常结束对话的问题。同时,调整了该模式下机器人读取的聊天记录的格式,避免机器人拿不到自己、用户的qq号和群号。优化了部分工具的提示语,以便AI更清楚地理解工具的使用条件。新增了EliMovieTool和EliMusicTool两个工具,可以通过这两个工具查看当前热门电影和使用点歌功能。当没安装avocado-plugin时保留SearchMusicTool与SendMusicTool,等我多测测~~也欢迎来一起测试提pr哈哈哈! Jun 27, 2023
… 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.🥑
@Qz-Sean Qz-Sean changed the title 修复了在API智能模式下,群聊无法正常结束对话的问题。同时,调整了该模式下机器人读取的聊天记录的格式,避免机器人拿不到自己、用户的qq号和群号。优化了部分工具的提示语,以便AI更清楚地理解工具的使用条件。新增了EliMovieTool和EliMusicTool两个工具,可以通过这两个工具查看当前热门电影和使用点歌功能。当没安装avocado-plugin时保留SearchMusicTool与SendMusicTool,等我多测测~~也欢迎来一起测试提pr哈哈哈! emm...🥵🥵🥵 Jun 28, 2023
…e 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.🥑
@Qz-Sean Qz-Sean changed the title emm...🥵🥵🥵 🥵🥵🥵 Jun 29, 2023
@ikechan8370 ikechan8370 merged commit 2443ed6 into ikechan8370:v2 Jul 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants