跳到正文
原文
OpenRouter Blog·· 18 天前AI 评分52

OpenRouter 教程:如何在 CI 中用 LLM eval 拦截 Pull Request

How to Gate Pull Requests on LLM Evals in CI

AI 导读

OpenRouter 发布教程,讲如何用固定 eval 集在 GitHub Actions 中拦截会改坏 agent 的 Pull Request。做法是把 eval 用例和 prompt 一起放进仓库,用脚本调用 OpenRouter 打分,通过率低于阈值时脚本以非零退出码让 job 失败,再把该 job 设为必需状态检查。

来源:OpenRouter Blog · openrouter.ai