Show Duo Self-Hosted page to Dedicated
Description
There are currently checks in place to gate Duo Self-Hosted for Dedicated:
- https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/presenters/admin/ai_configuration_presenter.rb#L59
- https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/presenters/admin/ai_presenter.rb#L118
- https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/policies/ee/global_policy.rb#L112
In order for Dedicated instances to configure GitLab managed models for GitLab Duo features (instance-level model selection), they will need access to the Duo Self-Hosted UI (i.e. the new unified Model Configuration UI)
Implementation Plan
- Update logic in
ai_presenter
to ensure the model configuration card is rendered for Dedicated instances. - Update logic in
self_hosted_controller
to ensure the instance-level model selection page is accessible for Dedicated instances. - Update GQL query resolver and mutation to ensure that Dedicated instances can view and select GitLab managed models but not self-hosted models.
Definition of Done
- Instance owners on GItLab Dedicated can access the Model Configuration page (unified with the GitLab Duo Self-Hosted page)
- Instance owners on GItLab Dedicated can set their preferred models via nstance > Settings > GitLab Duo > Model Selection
Edited by Cindy Halim