cherry-studio/src/preload
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
..
index.d.ts Feat/mcp tool response support image (#4787) 2025-04-14 17:16:42 +08:00
index.ts feat: 优化webdav备份文件恢复管理功能 (#4699) 2025-04-13 21:52:16 +08:00