155 Commits

Author SHA1 Message Date
619f2a3295 🔧 fix(apps/music.js): simplify music result sending and sanitize filenames for better compatibility 2025-11-30 11:07:38 +08:00
Jerry
7a3df0af50
Merge pull request #11 from devil233-ui/patch-2
Sanitize filenames and enhance error handling
2025-11-30 11:05:25 +08:00
61a9462247 feat(apps/ai.js): enhance message processing to support multimodal inputs and improve user message extraction.
 feat(config/ai.json): add configuration options for multimodal model support.
 feat(lib/ai/aiCaller.js): implement multimodal AI call handling and formatting for diverse message types.
2025-11-30 10:50:12 +08:00
devil233
d0b6b939cd
Sanitize filenames and enhance error handling
Refactor music file handling to sanitize filenames and improve error logging.
2025-11-30 06:58:03 +08:00
68f7a83024 🎵 feat(music): add music feature toggle in config and prevent actions when disabled(#10) 2025-11-29 16:39:12 +08:00
b6897704c1 feat(music.js): clear group search after sending music results to improve user experience 2025-11-29 13:33:17 +08:00
840d26300a 🐛 fix(apps/music.js): correct regex patterns and improve error messages for music commands in bot interaction 2025-11-29 13:28:51 +08:00
941c5a2cc6 🎉 feat(music): improve filename generation and implement download progress logging
🐛 fix(music): update getFileExtension to always return 'flac' and remove unnecessary logging
2025-11-29 00:53:49 +08:00
c57c2d9ec6 feat(music): the music is good! 2025-11-29 00:09:26 +08:00
c7e004fe3f 🎉 feat(music): add Crystelf music plugin and configuration for music API integration.
 feat(group): implement methods to send group audio and files with various adapters.
2025-11-27 18:44:43 +08:00
d9c8da47c0 🎨 chore(apps/rssPush.js): clean up import statements and improve logging messages for better clarity and consistency 2025-11-27 18:30:46 +08:00
devil233
b86743f885
fix RSSpush and add listFeeds functionality
详见注释
2025-11-26 22:44:55 +08:00
21d8546486 🔧 fix(constants/prompts): update "at" field to use -1 instead of false for message structure consistency
🔧 fix(lib/responseHandler): standardize "at" field default value to -1 for message processing

🔧 fix(apps/ai): adjust message quoting to clarify sender in response formatting and update "at" field to -1
2025-11-26 18:24:48 +08:00
4e440aaae7 🐛 fix(apps/ai.js): correct display text assignment to use message.text instead of msg.text 2025-11-26 15:03:11 +08:00
bd6ad16445 feat(ai): add max message length configuration and truncate long messages in chat history display 2025-11-26 13:47:22 +08:00
5c97c9cdf7 🐛 fix(aiCaller): improve message handling for group chat history and mentions with proper looping and name retrieval 2025-11-25 13:47:43 +08:00
be1d756e1e 🔧 fix(prompts): update quote parameter to -1 for message types
🔧 fix(responseHandler): set quote default to -1 for message processing
🔧 fix(message): adjust message handling to use seq for quotes in group messages
🔧 fix(ai): include message_id in formatted returnMessage for better tracking
2025-11-24 17:29:14 +08:00
7970f14f23 🛠️ fix(apps/ai.js): improve message formatting for replies and quoted messages in chat history 2025-11-24 16:19:28 +08:00
134f068bec 🔧 fix(prompts): change recall from number to boolean for message structure
🔧 fix(responseHandler): update recall from number to boolean for message processing

🔧 fix(ai): modify recall from number to boolean in AI message handling
2025-11-24 13:54:07 +08:00
f59dffbf37 🔧 fix(apps/ai.js): correct keyword matching to use event message instead of user message 2025-11-24 13:45:05 +08:00
7619b01000 📝 refactor(prompts.js): Remove unused recall functionality and clean up response handler logic
🧹 chore(responseHandler.js): Simplify message type handling by eliminating deprecated recall case
🚧 cleanup(ai.js): Delete obsolete recall message handling function and related case statements
2025-11-24 13:43:37 +08:00
f0bd88eed3 🐛 fix(apps/ai.js): improve message extraction by adding checks for non-empty user messages 2025-11-24 13:33:34 +08:00
2a43f40b5f fix(ui): adjust image URL check condition 2025-11-14 07:30:22 +08:00
f171a534a9 fix(ai): correct image URL check and remove unused like message handler 2025-11-13 21:44:42 +08:00
976e054e93 refactor(ai): 不再支持ollama及流式输出 2025-11-13 16:28:35 +08:00
d4849832a1 refactor: 删除午安相关逻辑 2025-11-12 13:48:16 +08:00
8698e9db98 refactor: 移除不必要的预设消息标记和适配器获取逻辑 2025-11-11 13:07:52 +08:00
a275763d4a fix(plugins/crystelf-plugin): 修复日志记录和消息处理逻辑 2025-11-09 01:47:54 +08:00
faad52d425 fix(ai) 空消息不回复 2025-11-09 01:27:49 +08:00
03560fd08f fix(ai): 修正消息类型判断逻辑 2025-11-08 18:03:59 +08:00
7629e7134e fix(ai): 修改at消息处理逻辑并优化戳一戳消息处理 resolves #3 2025-11-08 17:13:45 +08:00
97caa74d93 fix(poke): 主人戳机器人时不执行戳动作 resolves #2 2025-11-05 18:35:31 +08:00
1abf299a2d fix(ai): 修复空消息导致的格式问题 2025-10-30 13:44:14 +08:00
145a352f01 fix(core): 修正仅@机器人但无文本时返回空数组的逻辑 2025-10-29 21:27:23 +08:00
a9a494ddc1 fix(ai): 修正字符串匹配失败和回复逻辑 2025-10-29 21:17:10 +08:00
bef44e65c9 fix(ai): 修复AI处理逻辑并添加默认回复 2025-10-29 18:42:18 +08:00
414fe08f45 fix: AI调用失败时停用用户会话 2025-10-29 13:53:22 +08:00
fa0f3ceb4e fix(core): 在错误处理中添加adapter获取逻辑 2025-10-28 21:55:32 +08:00
70c7edb9f2 fix(60s): 修正图片编码参数及更新API地址 2025-10-26 10:08:02 +08:00
582b4450fb style: 代码格式优化 2025-10-26 00:42:03 +08:00
30e1f058b1 fix:修复早报 2025-10-25 10:19:24 +08:00
0947bff85a feat:more 2025-10-24 21:10:42 +08:00
daf4c9852b feat:60s 2025-10-24 21:10:02 +08:00
d1584e4402 feat:优化上下文 2025-10-22 22:13:33 +08:00
1ed09b5c32 fix:修复存入聊天记录不是数组问题 2025-10-22 21:46:41 +08:00
75b6d1a348 fix:memory 2025-10-22 13:49:44 +08:00
5aecaebfdc feat:添重置对话功能 2025-10-22 13:17:05 +08:00
1352710378 fix:会话漏洞修复 2025-10-22 13:00:46 +08:00
0216f31681 feat:词库信息加入上下文 2025-10-21 18:30:13 +08:00
2a901e65bf fix:修复sessions会话问题 2025-10-21 18:29:35 +08:00