mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-20 07:03:42 +08:00
修复Anthropic协议中MCP工具消息处理问题,增强错误恢复能力: - 改进MessageContent的JSON解析,支持原始JSON数据保留 - 移除对空内容的过滤,避免丢失MCP工具消息 - 增加详细调试日志,便于问题排查 - 优化错误响应处理,保留响应体信息 - 修复路由转发时可能的数据丢失问题 fix(anthropic): improve MCP tool message handling and error resilience - Enhance MessageContent JSON parsing to preserve raw JSON data - Remove empty content filtering to prevent MCP tool message loss - Add detailed debug logging for troubleshooting - Optimize error response handling with response body preservation - Fix potential data loss during routing 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>