Releases: Fu-Jie/deepseek-free-api
Releases · Fu-Jie/deepseek-free-api
v1.2.1
v1.2.0
DeepSeek Free API v1.2.0
中文
亮点
- 新增基于 Streamable HTTP 的 MCP 端点
/mcp,内置搜索工具,可直接用于 Cursor 和 Claude Desktop。 - 新增基于 SQLite 的持久化会话存储,在 Chat、Responses、Messages 和 MCP 流程中稳定复用客户端或令牌级会话。
- 新增
logs/audit/下的 JSONL 审计日志,对请求、错误和流式输出中的敏感头信息自动脱敏。 - 增强工具调用提示词与解析器兼容性,兼容 XML、JSON 和 DSML 风格输出。
- 新增多轮回归脚本,覆盖 Chat、Responses、Messages 的流式与非流式工具调用。
验证
- 本地 TypeScript 构建已通过:
yarn run build。 - 本地多轮工具调用回归脚本已通过(含内建重试)。
- 本地 Docker Buildx 多架构校验已通过,
linux/amd64与linux/arm64路径与 GitHub Actions 发布流程一致。
English
Highlights
- Added a Streamable HTTP MCP endpoint at
/mcpwith a built-in search tool for Cursor and Claude Desktop. - Added SQLite-backed persistent session storage with stable client- or token-scoped session reuse across Chat, Responses, Messages, and MCP flows.
- Added JSONL audit logging under
logs/audit/with automatic sensitive-header masking for requests, errors, and streamed output. - Hardened tool-calling prompt and parser compatibility across XML, JSON, and DSML-style outputs.
- Added a multi-turn regression script covering streaming and non-streaming tool calls across Chat, Responses, and Messages.
Verification
- Local TypeScript build passes with
yarn run build. - Local multi-turn tool-calling regression script passes after built-in retries.
- Local multi-arch Docker Buildx validation passed for
linux/amd64andlinux/arm64, matching the GitHub Actions release path.
v1.1.0: 修复流式丢字与全面强化 Agent 生态
🐛 Bug 修复
- 深度修复 SSE 流式解析:针对 DeepSeek 官网更新的流式协议,修复了内容嵌套在
v.response.fragments导致的回复开头字符(如“你好”)丢失的问题。通过深层片段解析,保障了首字秒回的完整性。
✨ 新功能与增强 (Agent 生态)
- 多协议端点扩展:新增支持 OpenAI Responses API (
/v1/responses) 和 Anthropic Messages API (/messages),深度适配 Codex CLI 和 Claude Code。涵盖了原生提示词转换、流式响应适配,以及reasoning_content到 Anthropic thinking delta 的无缝映射。 - 智能会话复用 (Session Reuse):针对未显式提供
conversation_id的客户端,通过前序消息生成唯一指纹,自动复用同一 DeepSeek 会话。大幅缓解 Agent 客户端全量历史重放带来的上下文膨胀和多会话分裂,并支持 TTL 自动清理机制。 - 环境变量规范化:新增项目根目录
.env的自动加载支持,并提供.env.example模板。
⚠️ 关于工具调用 (Tool Calling) 的不稳定警告
本项目对 Agent 工具调用的支持基于提示词模拟与正则表达式解析,受限于官网逆向工程的黑盒局限性,目前的工具调用不稳定,且不支持原生 OpenAI Tools 协议。它无法胜任严谨的 Agent 任务,仅供实验性测试。如有条件,强烈建议充值使用 DeepSeek 官方 API 获取稳定原生体验。
👏 鸣谢
v1.0.4 - DeepSeek-V4 Adaptation
🚀 DeepSeek-V4 全面适配 | DeepSeek-V4 Fully Supported
中文更新摘要 (Chinese)
- 全面适配 DeepSeek-V4:原生支持官方最新预览版模型。
- 1M 上下文:完美支持百万级上下文输入输出。
- 高性能 Pro/Flash:
expert(或包含v4-pro) 映射至 DeepSeek-V4-Pro。- 基础模型(不包含 expert)映射至 DeepSeek-V4-Flash。
- 深度思考与搜索:持续适配 V4 的深度思考(Thinking)与联网搜索功能。
English Update Summary
- DeepSeek-V4 Support: Native support for the latest official preview models.
- 1M Context Window: Full support for million-token context processing.
- Pro & Flash Performance:
expert(orv4-pro) maps to DeepSeek-V4-Pro.- Default models (non-expert) map to DeepSeek-V4-Flash.
- Thinking & Search: Continuous adaptation for V4's deep thinking and internet search capabilities.
Full Changelog: v1.0.3...v1.0.4