Harrison Chase· @hwchase17 · X·· 2026-10-14AI 评分69
AI 导读
LangChain 创始人 Harrison Chase 发文指出,模型路由器应当置于智能体执行框架(harness)内部而非 API 网关层,因为执行框架才真正掌握任务上下文。其引用的 Open SWE 测试数据显示,该开源编码智能体引入三档模型路由后,单任务中位数成本相比单一前沿模型降低 64% 至 $0.94,PR 合并率保持在 29.2%。
正文 · 原文
router lives in the harness, not a gateway, bc the harness knows the task
blog: https://t.co/k9b306ikK1
https://t.co/4FggNo00jY
LangChain gave its coding agent three models and a router. Open SWE, their open-source coding agent, now sends each thread to the cheapest model likely to finish the job. they tested it on 973 threads, half routed and half always on GPT-6 Astra. median cost per thread: $0.94 against $2.61. that's 64% lower. threads ending in a merged PR: 29.2% routed, 27.3% on Astra. LangChain's p-value for that gap is 0.49. the router sent 56% of threads to the balanced model, 34% to the fast one and 10% to the performance one. they also tried always using the fast model. that test ended within a day, because engineers reported low output quality. LangChain's own caveats: the control was the most expensive model, and the router is a proof of concept. Which three models would you put in the tiers?在 X 查看被引用的帖子
来源:Harrison Chase · x.com