Skip to content

V3 - 工具调用修复版

Latest

Choose a tag to compare

@fkyah3 fkyah3 released this 09 May 02:14
· 32 commits to main since this release

V3 - 工具调用修复版

修复

  • DeepSeek SSE 解析:删除了基于 inish_reason 的工具调用检测(DeepSeek 流式 API 全程不发 inish_reason),改为基于本地 _tool_call_buf 数据存在性判断
  • reasoning_content 独立发送:assistant 消息有 reasoning 就发
    easoning_content 而非合并到 content,保证多轮推理链不断
  • Sanitizer 保险:发送前自动补 (reasoning omitted),确保 API 不会拒收

功能

  • 工具调用:内置 list_dir /
    ead 工具,自动轮转上限可调(Inspector 中 _tc_max_rounds)
  • opencode Provider 源码内嵌:opencode-provider/ 目录包含真实 Provider 源码,开箱即可复现推理语言漂移实验
  • 模板:V8-多轮漂移测试模板,system prompt 引导模型通过 tool calling 探索 Provider 代码

数据

  • 320+ 次批量验证(8 组 × 40 次)
  • 分析报告 7 篇(溯源 → 复现 → 根因确认 → 工程复盘)
  • DeepSeek Issue #1255 回复 6 篇

下载使用

  1. 下载 V3.zip
  2. 解压后运行 deepseek_experiment_console.exe
  3. ⚙ 设置 → 填入 DeepSeek API Key
  4. 📋 模板 → 选 V8-多轮漂移测试 → ▶ 发送