LangChain 团队的代码智能体成本已连续第二个月大幅下降,并公布了实现降本的三大核心步骤。团队首先通过 LangSmith 全面追踪使用情况以实现成本可视化,随后借助 LLM 网关设置用户级支出上限来遏制意外开销。此外还通过开源云端智能体框架 OpenSWE 进行优化,利用模型路由等手段进一步压低了运行成本。
we're seeing our coding agent costs decrease significantly for second month in row
longer blog on this later, but three quick steps we took
1/ cost visibility. you cant control what you cant measure. Start tracking everything to langsmith. This gives us super granular visibility into who is using what, how they are using it, etc. LangSmith supports first party integrations with all main coding harnesses https://t.co/zPHBAWaRVS
2/ cost controls. Through our LLM gateway, set user level cost caps. (You can increase your cap by talking to our VPE). This helps curb unexpected or accidental spend. https://t.co/YhvxFjTfxi
3/ optimize the harness. Obviously 3rd party harnesses are tougher to optimize, but we are doing more and more coding through OpenSWE, our open source cloud agent harness. Things like model routing help bring the cost down https://t.co/pHUDDCF6zs
feel free to reach out if you want help implementing these at your co!
来源:Harrison Chase · x.com