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

来自 @dbreunig 的酷项目 在 LangChain 中这对应 ModelRouterMiddleware——jev 读取第一条消息并挑选模型,然后由该模型处理整次运行 jev 足够便宜,你也可以通过自定义 hook 在每次工具返回结果后重新挑选模型 docs: https://t.co/T2OwFGxocd https://t.co/oYrDHho4t5

正文

cool project by @dbreunig

in langchain this is ModelRouterMiddleware - jev reads the first message, picks the model, and that model handles the whole run

jev is cheap enough that you can also re-pick after each tool result with a custom hook

docs: https://t.co/T2OwFGxocd

https://t.co/oYrDHho4t5

引用Drew Breunig@dbreunig
A quick example of a model router, using DSPy and Jev, based on your initial prompt. Sketched this out in ~15 min, by request, and am surprised at how well it works! https://t.co/nHVFduV4RS
在 X 查看被引用的帖子

来源:Harrison Chase · x.com