PR cost check setup
Install the GitHub app and set the cost thresholds.
Install
An organisation admin installs the Parezen GitHub App from PR check settings, on the repositories to check. On every push to a pull request, the app reads the diff, finds model changes (one model id swapped for another) and prices both at your own average tokens per request, at today's price-book version. It does not need a Parezen SDK in the repo.
Thresholds
You set the warn and fail thresholds for cost per request (defaults: warn above +10%, fail above +25%). A small increase passes. A jump that crosses your line warns or fails. Each pull request gets one comment, updated in place on every push, so a busy PR does not fill up with bot comments.
Sample comment
This change raises AI cost per request from $0.18 to $0.27.
Sample pull request northwind/support-bot #1042. Status warn.