cherry-studio/src/main
LiuVaayne c7ef2c5791
Feat/mcp tool response support image (#4787)
* Add typed MCPCallToolResponse interface and format converters

The commit introduces a structured response type for MCP tool calls with
proper handling for different content types (text, image, audio). It adds
provider-specific converter functions to transform tool responses into
the appropriate message format for OpenAI, Anthropic, and Gemini.

* Support vision models in tool call responses

Add isVisionModel parameter to tool response formatters to conditionally
handle content based on model capabilities. Non-vision models now receive
JSON stringified content, while vision models get proper multimedia parts.
2025-04-14 17:16:42 +08:00
..
embeddings build: replace @llm-tools/embedjs with @cherrystudio/embedjs 2025-03-26 18:14:04 +08:00
integration/nutstore/sso/lib feat(mcp): add in-memory MCP server support and configuration management (#4359) 2025-04-05 14:17:56 +08:00
loader build: replace @llm-tools/embedjs with @cherrystudio/embedjs 2025-03-26 18:14:04 +08:00
mcpServers 重构了memory.ts,增加了文件写入锁,解决了并行写入导致记忆文件错误的问题; (#4671) 2025-04-11 22:03:57 +08:00
reranker refactor(reranker): 重构重排序功能以提高可维护性 (#4539) 2025-04-08 16:53:31 +08:00
services Feat/mcp tool response support image (#4787) 2025-04-14 17:16:42 +08:00
utils feat(mcp): add in-memory MCP server support and configuration management (#4359) 2025-04-05 14:17:56 +08:00
config.ts feat: Windows Control Overlay button hover effect 2025-03-06 19:29:10 +08:00
constant.ts feat: update package.json dependencies and enhance webview handling 2025-03-17 12:55:34 +08:00
electron.d.ts feat: add the ability to display the application in tray #297 2024-11-09 08:42:09 +08:00
env.d.ts feat: added vite_main_bundle_id config and improved code cleanliness 2024-09-15 10:35:02 +08:00
index.ts Clean up MCPService connections on app quit (#4647) 2025-04-10 17:19:02 +08:00
ipc.ts feat: 优化webdav备份文件恢复管理功能 (#4699) 2025-04-13 21:52:16 +08:00