Clean up redundant self-hosted models code
What does this MR do and why?
This MR cleans up obsolete code related to the self-hosted models pages. The UI started off in HAML but has recently been converted to Vue and the old code needs to be removed.
What this MR does:
- Removes the
custom_models_vue_appfeature flag. This was used while converting the HAML implementation into Vue, but is no longer needed as the Vue rebuild is complete. - Removes obsolete self-hosted models HAML code
- Removes obsolete endpoints and their associated routes in the self-hosted models controller
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Current Implementation:
| Index | New | Edit |
|---|---|---|
![]() |
![]() |
![]() |
HAML Implementation (obsolete):
| Index | New | Edit |
|---|---|---|
![]() |
![]() |
![]() |
How to set up and validate locally
To see the current implementation of the AI Feature settings page, follow steps below.
Prequisites
You will need an active GitLab ultimate license.
- Start GDK instance in self-managed mode:
GITLAB_SIMULATE_SAAS=0 && gdk start
- Visit the GDK feature flags page and ensure the following flags are enabled
ai_custom_model - Go to the rails console and ensure Code Suggestions is enabled
ApplicationSetting.first.update(duo_features_enabled: true)
Test it!
- Log in as an admin
- Visit Admin Area > Self-hosted models
- Visit the "Self-hosted models" tab (you should land here by default)
Related to #484751 (closed)
Edited by Julie Huang






