fix: 记忆抽取关闭 Qwen 思考模式 + 测试模型与生产配置对齐 - #117
Conversation
- extractor.ts 和测试中添加 enable_thinking: false,抽取是结构化输出任务不需要 CoT - 测试硬编码的 qwen3.5-plus 改为读取 MEMORY_EXTRACTION_MODEL 环境变量(默认 qwen3.5-flash) - quality.test.ts 抽取 case 超时从 120s 放宽到 240s(外部 API 兜底) - 实测 5 个抽取 case 总耗时从 >310s 降至 ~6s Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Claude finished @lishuceo's task in 49s —— View job PR Review: 记忆抽取关闭 Qwen 思考模式
✅ Approved — Clean, focused fix. No issues found. Changes reviewed:
Assessment: All three changes are minimal, correct, and well-motivated. Tests mirror production config, |
fix: 记忆抽取关闭 Qwen 思考模式 + 测试模型与生产配置对齐
Summary
enable_thinking: false,记忆抽取是结构化输出任务不需要 CoT 推理qwen3.5-plus(思考模型)改为process.env.MEMORY_EXTRACTION_MODEL || 'qwen3.5-flash',与生产配置对齐Test plan
npx vitest run src/memory/__tests__/quality.test.ts— 抽取 case 全部通过,耗时从 >310s 降至 ~6snpx vitest run全量测试通过🤖 Generated with Claude Code