cherry-studio/src/renderer
Wang Jiyuan 68d0b13a64
fix: Ensure tool call results are included in the conversation context (#7463)
* 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): 移除冗余的条件判断
2025-07-01 12:34:11 +08:00
..
src fix: Ensure tool call results are included in the conversation context (#7463) 2025-07-01 12:34:11 +08:00
index.html refactor: update spinner handling and improve initialization timing 2025-05-18 22:05:35 +08:00
miniWindow.html fix: miniWindow not found 2025-05-11 23:54:47 +08:00
selectionAction.html feat: Selection Assistant / 划词助手 (#5900) 2025-05-26 16:50:52 +08:00
selectionToolbar.html refactor(SelectionAssistant): make all Toolbar CSS variables customizable (#7532) 2025-06-26 10:17:09 +08:00