mirror of
https://github.com/7836246/cursor2api.git
synced 2026-09-03 07:20:02 +08:00
✨ 新功能: - API Token 鉴权 (auth_tokens): 公网部署安全,Bearer token / x-api-key 双模式 - Thinking 支持 (客户端驱动): Anthropic thinking block + OpenAI reasoning_content - response_format 支持: json_object / json_schema + markdown 自动剥离 - Vision 独立代理 (vision.proxy): 图片API走代理,Cursor API保持直连 🔧 优化: - 已知工具跳过描述 (WELL_KNOWN_TOOLS): 减少 ~30% 工具指令输入 - 动态工具结果预算 (getToolResultBudget): 替代固定 15K 限制 - isTruncated 重写: 消除反引号误判导致的无限重试 - 计费头清除: 清除 x-anthropic-billing-header 防注入警告 🛡️ 防御: - 新增 4 个 Cursor 拒绝措辞匹配模式
1.0 KiB
1.0 KiB