Commit graph

82 commits

Author SHA1 Message Date
127Wzc
aaaee383a8 fix: 尝试修复onebot无法获取群聊记录及图片tools发图异常
1.类比shamrock,onebot使用e.group.getChatHistory(0, num, false)可以直接取到记录历史记录
2.我这边napcat的onebot得到的e.bot.getGroupList()是数组这。不同协议差别这么大吗。。先这样能发送了
2025-03-11 23:13:23 +08:00
Etgpao
47016aeaa1
Update SendMusicTool.js (#745)
适配napcat
2025-02-21 14:08:58 +08:00
ikechan8370
5add41c982 fix: post processors 2025-02-19 13:10:59 +08:00
ikechan8370
20195ecfdf fix: 发图工具的小bug 2025-02-18 00:09:41 +08:00
ikechan8370
0fae49d5d1 fix: adjust website tools; trim gemini intermediate response 2025-02-17 22:45:39 +08:00
ikechan8370
41be6befec fix: github tool adjustment 2025-02-17 13:24:30 +08:00
ikechan8370
0ad0e2d237 feat: add github tool 2025-02-17 12:41:51 +08:00
ikechan8370
84e7e6b859 fix: adjust serp tool 2025-02-17 11:55:42 +08:00
ikechan8370
b486b45f44 fix: adjust tools 2025-02-17 01:56:36 +08:00
ikechan8370
d96349dde3 fix: 增加智能模式私聊开关 2025-02-16 22:21:31 +08:00
ikechan8370
777279e410 fix: 工具调整 2025-02-16 21:43:23 +08:00
ikechan8370
08afc95f06 fix: 修复gemini禁言和提出对非管理员不生效的问题 2025-02-16 21:29:47 +08:00
ikechan8370
fcca28de37 fix: 修复前几天支持multiple tools导致的gemini搜了不发的问题 2025-02-16 20:59:26 +08:00
ikechan8370
213818b635 fix: 修复搜索为空 2025-02-16 20:46:09 +08:00
ikechan8370
1911e5ca4b fix: 发癫一样的给bym私聊狂发图 2025-02-15 20:26:24 +08:00
ikechan8370
98d129517a fix: error when gemini multiple functionCall in one response 2025-02-15 20:24:04 +08:00
ikechan8370
69ff552dc9 fix: 图片分开发送避免失败 2025-02-15 19:33:16 +08:00
ikechan8370
870eba51d2 fix: 智障吧我是 2025-02-15 19:20:52 +08:00
ikechan8370
9f521064a1 fix: 搜图工具增加yandex 2025-02-15 19:14:17 +08:00
ikechan8370
2ad77d8112 fix: 工具私聊 2025-02-12 15:43:37 +08:00
misaka20002
7974c6a1c9
feat: 轮询geminiKeys,用英文逗号隔开 (#744) 2025-01-04 14:49:52 +08:00
ikechan8370
314c60d0ae fix: bym optimizing 2025-01-02 20:51:45 +08:00
ikechan8370
1149f34070 fix: tool permission 2024-12-31 13:02:18 +08:00
青青
2b9734c641
兼容trss (#723)
Co-authored-by: Jin1c on imini <Jin0x31c@gmail.com>
2024-10-29 16:01:55 +08:00
ikechan8370
e6af4083c2 fix: 修复Gemini的图片和工具支持 2024-07-29 16:49:40 +08:00
ikechan8370
bd7aac0517 fix: remove useless thing 2024-03-09 23:37:47 +08:00
ikechan8370
8bdf9a3b6d feat: 适配copilot pro账户的gpt4-turbo选项 2024-01-16 20:32:22 +08:00
ikechan8370
22dcb0405b Note: The gemini-pro-vision model (for text-and-image input) is not yet optimized for multi-turn conversations. Make sure to use gemini-pro and text-only input for chat use cases. 2023-12-15 20:26:05 +08:00
ikechan8370
4dc5d6fe77 fix: 权限和角色问题导致的工具调用失败 2023-12-15 18:08:03 +08:00
ikechan8370
bbe769f1aa fix: 实现Gemini客户端取代官方版本 2023-12-15 00:41:42 +08:00
ikechan8370
b8eaffe930 fix: query user info tools 2023-12-11 01:02:31 +08:00
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