跳到正文
数字商店
原文
Harrison Chase· @hwchase17 · X·· 2026-10-14AI 评分69
AI 导读

LangChain 创始人 Harrison Chase 发文指出,模型路由器应当置于智能体执行框架(harness)内部而非 API 网关层,因为执行框架才真正掌握任务上下文。其引用的 Open SWE 测试数据显示,该开源编码智能体引入三档模型路由后,单任务中位数成本相比单一前沿模型降低 64% 至 $0.94,PR 合并率保持在 29.2%。

正文 · AI 翻译

路由器存在于 harness 中,而不是网关,因为 harness 知道任务

博客:https://t.co/k9b306ikK1

https://t.co/4FggNo00jY

引用NeilXbt@neil_xbt
LangChain 给它的编程智能体配了三个模型和一个路由器。 Open SWE 是他们开源的编程智能体,现在它会把每个线程发给最便宜、且最有可能完成任务的模型。 他们在 973 个线程上做了测试,一半走路由,一半始终用 GPT-6 Astra。 每个线程的成本中位数:0.94 美元对 2.61 美元。低了 64%。 最终合并了 PR 的线程:走路由的占 29.2%,用 Astra 的占 27.3%。LangChain 给出的这一差距的 p 值是 0.49。 路由器把 56% 的线程发给了均衡模型,34% 发给了快速模型,10% 发给了性能模型。 他们还试过始终使用快速模型。那个测试不到一天就结束了,因为工程师反馈输出质量低。 LangChain 自己给出的注意事项:对照组用的是最贵的模型,而且这个路由器只是概念验证。 你会把哪三个模型放进这些档位?
原文

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