mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-26 11:44:28 +08:00
* refactor(aiCore): 统一消息内容处理逻辑,优化工具调用结果显示 重构各AI客户端的消息内容处理逻辑,使用新的getContentWithTools函数统一处理 将blocks参数重命名为block以符合语义 使用MessageBlockType枚举替代硬编码字符串 * fix(aiCore): 修复工具调用结果消息的格式问题 调整工具调用结果消息的换行格式,使其显示更清晰 * refactor(aiCore): 将getContentWithTools工具函数移至messageUtils模块 重构代码,将getContentWithTools函数从aiCore/clients/utils.ts移动到messageUtils/find.ts模块中 统一消息处理工具函数的存放位置,提高代码组织性 删除不再使用的utils.ts文件 * refactor(aiCore): 统一使用getMessageContent获取消息内容 将各API客户端中直接调用getContentWithTools改为通过基类的getMessageContent方法获取消息内容,保持行为一致性 * fix(find): 移除冗余的条件判断 |
||
|---|---|---|
| .. | ||
| src | ||
| index.html | ||
| miniWindow.html | ||
| selectionAction.html | ||
| selectionToolbar.html | ||