merjax_set_pr_ai_settings
Choose the model for a pull request's AI tasks (review, risk summary, CI fixes, conflict proposals): a model id from the catalog, or null / "" to inherit the repository's or the platform's choice. Write access to the repository. run_via ("subscription" or "api": where AI runs and who pays) is for site admins only, with an admin-scoped token, and the subscription only on a repository a site admin owns. Omitted fields are kept; the same values again are unchanged. A model below a task's floor is raised and the effective list says so. Mirrors PUT /api/v2/repos/:o/:r/pulls/:n/ai-settings. Audit-logged. Returns {number, effect, model, repository_model, effective:[{task, label, model, model_label, source, raised, note}], updated_at} plus the run-on fields for a site admin.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repo name | |
| model | No | Model id for this pull request's AI tasks (e.g. claude-opus-5-5); null or "" inherits the repository's or the platform's choice; omit to keep | |
| owner | Yes | Repo owner — username or organisation slug | |
| number | Yes | Pull request number | |
| run_via | No | Site admins only: "subscription" or "api"; null or "" follows the global switch; omit to keep |