Adapt displayed Code Suggestions probes to backend response
What does this MR do and why?
It renders Code Suggestions according to the probes the backend (see this MR) sends. The main difference is whether the Duo Pro Enterprise license is online/offline.
Screenshots or screen recordings
Online license | Offline license |
---|---|
Don't mind the errors, My local LLM setup is just too slow.
How to set up and validate locally
You will need an active GitLab ultimate license.
- Start GDK instance in self-managed mode:
GITLAB_SIMULATE_SAAS=0 && gdk start
- In the rails console, enable Code Suggestions and the custom models experiment:
Feature.enable(:ai_custom_model)
ApplicationSetting.first.update(duo_features_enabled: true)
- Enable the admin ai-powered feature settings FF
Feature.enable(:custom_models_feature_settings_vue_app)
Test it!
- Log in as an admin
- Visit the page Admin Area > AI-Powered Features > Self-hosted models
- Click on 'Run health check'
Related to #491564 (closed)
Edited by Patrick Cyiza