Approve every low rating changes to our model selection process

What does this MR do and why?

Step 4 of onboarding the AI Gateway to the MR Risk Labeler. It sets approve: true and low_scopes: [all] for ai-assist, so @gitlab-bot approves merge requests the labeler rates low. Step 3, label only, is !4537 (closed).

Tim mentioned in Slack that more projects can start to pilot this, and the AI Gateway is on the pilot issue.

What get's approved

To start off testing this usage, I want to define a small test case for getting new AIModel Addition added via our (models.yml, unit_primitives.yml, litellm_model_registry.py).

We already add models through the ModelAddition checklist, and the model-selection rubric checks for the same things, like a public release and config that matches the predecessor. We also have a defined CI check lint_pricing to ensure that all new models added have an associated pricing change before adding a new model.

With these defined rules, we should have a very automated step process for ensuring new models can be added at least in the AI Gateway project.

Before merging

  • Merge !4537 (closed) and rebase this onto master.
  • Add mode: live to the AI Gateway's mr-risk-rules.yml.
  • Add @gitlab-bot to the AI Gateway's CODEOWNERS for the three model-selection paths. main requires code owner approval and * belongs to @gitlab-org/maintainers/duo-workflow-service, so the bot's approval won't count on its own.
Edited by Nathan Weinshenker

Merge request reports

Loading
Loading