Skip to content

Releases: Fu-Jie/deepseek-free-api

v1.2.1

10 May 15:13

Choose a tag to compare

✨ 关键变更 (Changelog)

  • Features:
    • 优化了版本提取逻辑,支持变量解析,并更新了自动更新频率,同时启用了 .env 环境配置支持 (ca50fb6)。此项改进解决了 #3 中提到的版本提取失败导致控制台报错的问题。
  • Refactor:
    • 增加了消息指纹字符限制(从 30 提升至 500),并优化了工具执行结果的处理流程 (6ce0810)。
  • Documentation:
    • 更新了 README 文件中的章节编号和标题结构 (f958157)。
  • Chores:
    • 版本号升级至 1.2.1 (68b2fc6)。

Addresses #3

v1.2.0

27 Apr 17:13

Choose a tag to compare

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/amd64linux/arm64 路径与 GitHub Actions 发布流程一致。

English

Highlights

  • Added a Streamable HTTP MCP endpoint at /mcp with 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/amd64 and linux/arm64, matching the GitHub Actions release path.

v1.1.0: 修复流式丢字与全面强化 Agent 生态

26 Apr 14:22

Choose a tag to compare

🐛 Bug 修复

  • 深度修复 SSE 流式解析:针对 DeepSeek 官网更新的流式协议,修复了内容嵌套在 v.response.fragments 导致的回复开头字符(如“你好”)丢失的问题。通过深层片段解析,保障了首字秒回的完整性。

✨ 新功能与增强 (Agent 生态)

  • 多协议端点扩展:新增支持 OpenAI Responses API (/v1/responses) 和 Anthropic Messages API (/messages),深度适配 Codex CLIClaude Code。涵盖了原生提示词转换、流式响应适配,以及 reasoning_content 到 Anthropic thinking delta 的无缝映射。
  • 智能会话复用 (Session Reuse):针对未显式提供 conversation_id 的客户端,通过前序消息生成唯一指纹,自动复用同一 DeepSeek 会话。大幅缓解 Agent 客户端全量历史重放带来的上下文膨胀和多会话分裂,并支持 TTL 自动清理机制。
  • 环境变量规范化:新增项目根目录 .env 的自动加载支持,并提供 .env.example 模板。

⚠️ 关于工具调用 (Tool Calling) 的不稳定警告
本项目对 Agent 工具调用的支持基于提示词模拟与正则表达式解析,受限于官网逆向工程的黑盒局限性,目前的工具调用不稳定,且不支持原生 OpenAI Tools 协议。它无法胜任严谨的 Agent 任务,仅供实验性测试。如有条件,强烈建议充值使用 DeepSeek 官方 API 获取稳定原生体验。

👏 鸣谢

特别感谢 @Jinxuans 提交的 PR #1 为本版本提供了核心的 Agent 适配增强及会话复用功能。

v1.0.4 - DeepSeek-V4 Adaptation

08 Apr 08:41

Choose a tag to compare

🚀 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 (or v4-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